函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\padata.c Create Date:2022-07-27 15:09:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:padata_alloc_shell - Allocate and initialize padata shell.*@pinst: Parent padata_instance object.

函数原型:struct padata_shell *padata_alloc_shell(struct padata_instance *pinst)

返回类型:struct padata_shell

参数:

类型参数名称
struct padata_instance *pinst
1086  ps等于分配内存并置零
1087  如果非ps则转到:out
1090  pinst等于pinst
1092  get_online_cpus()
1093  pd等于Allocate and initialize the internal cpumask dependend resources.
1094  put_online_cpus()
1096  如果非pd则转到: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  添加链表项
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  返回:ps
1106  out_free_ps :
1107  kfree(ps)
1108  out :
1109  返回:NULL