Home
last modified time | relevance | path

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

/DragonOS-0.1.5/kernel/src/process/
Dfork.c37 struct process_control_block *tsk = NULL; in do_fork() local
40 tsk = (struct process_control_block *)kzalloc(STACK_SIZE, 0); in do_fork()
43 if (tsk == NULL) in do_fork()
50 memset(tsk, 0, sizeof(struct process_control_block)); in do_fork()
53 memcpy(tsk, current_pcb, sizeof(struct process_control_block)); in do_fork()
54 tsk->worker_private = NULL; in do_fork()
58 list_init(&tsk->list); in do_fork()
63 tsk->flags |= PF_KFORK; in do_fork()
65 if (tsk->flags & PF_KTHREAD) in do_fork()
68 retval = kthread_set_worker_private(tsk); in do_fork()
[all …]