Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:padata_alloc_shell - Allocate and initialize padata shell.*@pinst: Parent padata_instance object.

Proto:struct padata_shell *padata_alloc_shell(struct padata_instance *pinst)

Type:struct padata_shell

Parameter:

TypeParameterName
struct padata_instance *pinst
1086  ps = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
1087  If Not ps Then Go to out
1090  pinst = pinst
1092  get_online_cpus()
1093  pd = Allocate and initialize the internal cpumask dependend resources.
1094  put_online_cpus()
1096  If Not pd Then Go to out_free_ps
1099  mutex_lock( & lock)
1100  RCU_INIT_POINTER() - initialize an RCU protected pointer*@p: The pointer to be initialized.*@v: The value to initialized the pointer to.* Initialize an RCU-protected pointer in special cases where readers(pd, pd)
1101  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
1102  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1104  Return ps
1106  out_free_ps :
1107  kfree(ps)
1108  out :
1109  Return NULL