Searched refs:Thread (Results 1 – 16 of 16) sorted by relevance
| /sys/include/ |
| D | thread.h | 10 struct Thread; 11 typedef struct Thread Thread; typedef 23 typedef TAILQ_HEAD(ThreadQueue, Thread) ThreadQueue; 31 typedef struct Thread { struct 40 TAILQ_ENTRY(Thread) threadList; argument 43 TAILQ_ENTRY(Thread) schedQueue; argument 46 TAILQ_ENTRY(Thread) semaQueue; // Semaphore Queue argument 49 TAILQ_ENTRY(Thread) chanQueue; argument 56 } Thread; argument 109 Thread *Thread_Create(Process *proc); [all …]
|
| D | semaphore.h | 10 struct Thread; 17 TAILQ_HEAD(SemaThreadQueue,Thread) waiters;
|
| D | loader.h | 8 bool Loader_Load(Thread *thr, VNode *vn, void *buf, uint64_t len);
|
| D | mutex.h | 10 Thread *owner;
|
| D | waitchannel.h | 15 TAILQ_HEAD(WaitQueue, Thread) chanQueue;
|
| /sys/kern/ |
| D | thread.c | 36 extern Thread *curProc[MAX_CPUS]; 58 Slab_Init(&threadSlab, "Thread Objects", sizeof(Thread), 16); in Thread_Init() 81 Thread *apthr = Thread_Create(kernelProcess); in Thread_InitAP() 95 Thread * 98 Thread *thr = (Thread *)Slab_Alloc(&threadSlab); in Thread_Create() 135 Thread * 138 Thread *thr = Thread_Create(kernelProcess); in Thread_KThreadCreate() 147 Thread * 148 Thread_UThreadCreate(Thread *oldThr, uint64_t rip, uint64_t arg) in Thread_UThreadCreate() 151 Thread *thr = (Thread *)Slab_Alloc(&threadSlab); in Thread_UThreadCreate() [all …]
|
| D | sched.c | 41 Thread *curProc[MAX_CPUS]; 55 Thread * 60 Thread *thr = curProc[CPU()]; in Sched_Current() 77 Sched_SetRunnable(Thread *thr) in Sched_SetRunnable() 104 Sched_SetWaiting(Thread *thr) in Sched_SetWaiting() 126 Sched_SetZombie(Thread *thr) in Sched_SetZombie() 175 Sched_Switch(Thread *oldthr, Thread *newthr) in Sched_Switch() 191 Thread *prev; in Sched_Scheduler() 192 Thread *next; in Sched_Scheduler()
|
| D | syscall.c | 36 Thread *cur = Sched_Current(); in Syscall_GetPID() 47 Thread *cur = Sched_Current(); in Syscall_Exit() 76 Thread *thr; in Syscall_Spawn() 77 Thread *cur; in Syscall_Spawn() 169 Thread *cur = Sched_Current(); in Syscall_Wait() 180 Thread *cur = Sched_Current(); in Syscall_MMap() 196 Thread *cur = Sched_Current(); in Syscall_MUnmap() 222 Thread *cur = Sched_Current(); in Syscall_Read() 240 Thread *cur = Sched_Current(); in Syscall_Write() 258 Thread *cur = Sched_Current(); in Syscall_Flush() [all …]
|
| D | waitchannel.c | 73 Thread *thr = Sched_Current(); in WaitChannel_Sleep() 93 Thread *thr; in WaitChannel_Wake() 118 Thread *thr; in WaitChannel_WakeAll() 119 Thread *thrTemp; in WaitChannel_WakeAll()
|
| D | semaphore.c | 51 Thread *cur = Sched_Current(); in Semaphore_Acquire() 74 Thread *thr; in Semaphore_Release() 111 Thread *thr; in Debug_Semaphores()
|
| D | process.c | 25 extern Thread *curProc[MAX_CPUS]; 208 Thread *thr; in Process_Wait() 293 Thread *thr = curProc[CPU()]; in Debug_ProcInfo()
|
| D | mutex.c | 27 extern Thread *curProc[MAX_CPUS];
|
| D | loader.c | 131 Loader_Load(Thread *thr, VNode *vn, void *buf, uint64_t len) in Loader_Load() 205 Thread *thr = Sched_Current(); in Loader_LoadInit()
|
| /sys/amd64/ |
| D | thread.c | 20 Thread_InitArch(Thread *thr) in Thread_InitArch() 26 Thread_SetupKThread(Thread *thr, void (*f)(), in Thread_SetupKThread() 75 Thread_SetupUThread(Thread *thr, uintptr_t rip, uintptr_t arg) in Thread_SetupUThread() 84 Thread_SwitchArch(Thread *oldthr, Thread *newthr) in Thread_SwitchArch()
|
| D | machine.c | 232 Thread *thr = Thread_KThreadCreate(&Machine_IdleThread, NULL); in Machine_Init()
|
| D | kernel.lds | 83 /* Thread Local Storage sections */
|