Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/process/
Dfork.c39 struct process_control_block *tsk = NULL; in do_fork() local
42 tsk = (struct process_control_block *)kzalloc(STACK_SIZE, 0); in do_fork()
45 if (tsk == NULL) in do_fork()
52 memset(tsk, 0, sizeof(struct process_control_block)); in do_fork()
55 memcpy(tsk, current_pcb, sizeof(struct process_control_block)); in do_fork()
56 tsk->worker_private = NULL; in do_fork()
60 list_init(&tsk->list); in do_fork()
65 tsk->flags |= PF_KFORK; in do_fork()
67 if (tsk->flags & PF_KTHREAD) in do_fork()
70 retval = kthread_set_worker_private(tsk); in do_fork()
[all …]