Home
last modified time | relevance | path

Searched refs:Thread (Results 1 – 16 of 16) sorted by relevance

/sys/include/
Dthread.h10 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 …]
Dsemaphore.h10 struct Thread;
17 TAILQ_HEAD(SemaThreadQueue,Thread) waiters;
Dloader.h8 bool Loader_Load(Thread *thr, VNode *vn, void *buf, uint64_t len);
Dmutex.h10 Thread *owner;
Dwaitchannel.h15 TAILQ_HEAD(WaitQueue, Thread) chanQueue;
/sys/kern/
Dthread.c36 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 …]
Dsched.c41 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()
Dsyscall.c36 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 …]
Dwaitchannel.c73 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()
Dsemaphore.c51 Thread *cur = Sched_Current(); in Semaphore_Acquire()
74 Thread *thr; in Semaphore_Release()
111 Thread *thr; in Debug_Semaphores()
Dprocess.c25 extern Thread *curProc[MAX_CPUS];
208 Thread *thr; in Process_Wait()
293 Thread *thr = curProc[CPU()]; in Debug_ProcInfo()
Dmutex.c27 extern Thread *curProc[MAX_CPUS];
Dloader.c131 Loader_Load(Thread *thr, VNode *vn, void *buf, uint64_t len) in Loader_Load()
205 Thread *thr = Sched_Current(); in Loader_LoadInit()
/sys/amd64/
Dthread.c20 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()
Dmachine.c232 Thread *thr = Thread_KThreadCreate(&Machine_IdleThread, NULL); in Machine_Init()
Dkernel.lds83 /* Thread Local Storage sections */