Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kthread.c Create Date:2022-07-28 09:30:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kthreadd

Proto:int kthreadd(void *unused)

Type:int

Parameter:

TypeParameterName
void *unused
570  tsk = current process
573  set_task_comm(tsk, "kthreadd")
574  ignore_signals(tsk)
575  set_cpus_allowed_ptr(tsk, cpu_all_mask)
576  set_mems_allowed(The following particular system nodemasks and operations* on them manage all possible and online nodes.[N_MEMORY])
578  flags |= This thread should not be frozen
579  cgroup_init_kthreadd()
581  cycle
582  set_current_state(TASK_INTERRUPTIBLE)
583  If list_empty - tests whether a list is empty*@head: the list to test. Then schedule()
585  set_current_state() includes a barrier so that the write of current->state* is correctly serialised wrt the caller's subsequent test of whether to* actually sleep:* for (;;) {* set_current_state(TASK_UNINTERRUPTIBLE);* if (!need_sleep)* break;* (Used in tsk->state: )
587  spin_lock( & kthread_create_lock)
600  spin_unlock( & kthread_create_lock)
603  Return 0