Lines Matching refs:proc
23 Handle_Init(Process *proc)
28 TAILQ_INIT(&proc->handles[i]);
33 Handle_Destroy(Process *proc)
39 TAILQ_FOREACH_SAFE(handle, &proc->handles[i], handleList, handle_tmp) {
40 TAILQ_REMOVE(&proc->handles[i], handle, handleList);
47 Handle_Add(Process *proc, Handle *handle)
51 handle->fd = proc->nextFD;
52 proc->nextFD++;
53 handle->processId = proc->pid;
57 TAILQ_INSERT_HEAD(&proc->handles[slot], handle, handleList);
63 Handle_Remove(Process *proc, Handle *handle)
67 TAILQ_REMOVE(&proc->handles[slot], handle, handleList);
71 Handle_Lookup(Process *proc, uint64_t fd)
76 TAILQ_FOREACH(handle, &proc->handles[slot], handleList) {