Home
last modified time | relevance | path

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

/DragonOS-0.1.7/kernel/src/process/
Dfork.c38 struct process_control_block *tsk = NULL; in do_fork() local
41 tsk = (struct process_control_block *)kzalloc(STACK_SIZE, 0); in do_fork()
44 if (tsk == NULL) in do_fork()
51 memset(tsk, 0, sizeof(struct process_control_block)); in do_fork()
54 memcpy(tsk, current_pcb, sizeof(struct process_control_block)); in do_fork()
55 tsk->worker_private = NULL; in do_fork()
59 list_init(&tsk->list); in do_fork()
64 tsk->flags |= PF_KFORK; in do_fork()
66 if (tsk->flags & PF_KTHREAD) in do_fork()
69 retval = kthread_set_worker_private(tsk); in do_fork()
[all …]