Expand description
Process and thread management syscalls.
Implements PID/TID retrieval per the Strat9-OS ABI.
Structsยง
- Thread
User ๐Context
Constantsยง
- ARCH_
GET_ ๐FS - ARCH_
GET_ ๐GS - ARCH_
SET_ ๐FS - ARCH_
SET_ ๐GS - x86_64 arch_prctl operation codes (Linux-compatible).
- MSR_
FS_ ๐BASE - MSR addresses for FS/GS base.
- MSR_
GS_ ๐BASE - THREAD_
OFF_ ๐ARG0 - THREAD_
OFF_ ๐ENTRY - THREAD_
OFF_ ๐STACK_ TOP - THREAD_
OFF_ ๐USER_ CS - THREAD_
OFF_ ๐USER_ RFLAGS - THREAD_
OFF_ ๐USER_ SS
Functionsยง
- build_
user_ ๐thread_ task - Performs the build user thread task operation.
- rdmsr ๐ โ
- Read a 64-bit value from an MSR.
- sys_
arch_ prctl - SYS_ARCH_PRCTL (350): Architecture-specific process settings.
- sys_
exit_ group - SYS_EXIT_GROUP (334): Exit all threads in the thread group.
- sys_
getegid - SYS_GETEGID (338): Return effective group id.
- sys_
geteuid - SYS_GETEUID (336): Return effective user id.
- sys_
getgid - SYS_GETGID (337): Return real group id.
- sys_
getpgid - SYS_GETPGID (318): Return process group id for
pid(0= caller). - sys_
getpgrp - POSIX getpgrp wrapper (equivalent to getpgid(0)).
- sys_
getpid - SYS_GETPID (311): Return current process ID.
- sys_
getppid - SYS_PROC_GETPPID/SYS_GETPPID (309): Return parent process ID.
- sys_
getsid - SYS_GETSID (332): Return session id for
pid(0= caller). - sys_
gettid - SYS_GETTID (312): Return current thread ID.
- sys_
getuid - SYS_GETUID (335): Return real user id.
- sys_
set_ tid_ address - SYS_SET_TID_ADDRESS (333): Store
tidptrin the task; return current TID. - sys_
setgid - SYS_SETGID (340): Set real and effective group id (simplified).
- sys_
setpgid - SYS_SETPGID (317): set process group id.
- sys_
setsid - SYS_SETSID (319): create a new session.
- sys_
setuid - SYS_SETUID (339): Set real and effective user id (simplified: no capabilities check).
- sys_
tgkill - SYS_TGKILL (352): Send a signal to a specific thread in a thread group.
- sys_
thread_ create - SYS_THREAD_CREATE (341): create a userspace thread sharing current process resources.
- sys_
thread_ exit - SYS_THREAD_EXIT (343): exit only the current thread.
- sys_
thread_ join - SYS_THREAD_JOIN (342): wait for a thread created by the current task.
- thread_
child_ ๐start - Performs the thread child start operation.
- thread_
iret_ ๐ โfrom_ ctx - Performs the thread iret from ctx operation.
- wrmsr ๐ โ
- Write a 64-bit value to an MSR.