函数逻辑报告 |
Source Code:kernel\padata.c |
Create Date:2022-07-27 15:08:52 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:padata_do_parallel - padata parallelization function*@ps: padatashell*@padata: object to be parallelized*@cb_cpu: pointer to the CPU that the serialization callback function should* run on. If it's not in the serial cpumask of @pinst* (i
函数原型:int padata_do_parallel(struct padata_shell *ps, struct padata_priv *padata, int *cb_cpu)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct padata_shell * | ps | |
| struct padata_priv * | padata | |
| int * | cb_cpu |
| 113 | pd等于cu_dereference_bh() - fetch an RCU-bh-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* Makes rcu_dereference_check() do the dirty work.(pd) |
| 116 | 如果非flags按位与PADATA_INIT的值或flags按位与PADATA_INVALID则转到:out |
| 119 | 如果非测试CPU信息则 |
| 120 | 如果非pumask_weight - Count of bits in *srcp*@srcp: the cpumask to count bits (< nr_cpu_ids) in.则转到:out |
| 124 | cpu_index等于cb_cpu取模pumask_weight - Count of bits in *srcp*@srcp: the cpumask to count bits (< nr_cpu_ids) in. |
| 134 | 如果flags按位与PADATA_RESET则转到:out |
| 137 | 如果atomic_read( & refcnt)大于等于MAX_OBJ_NUM则转到:out |
| 140 | err等于0 |
| 141 | atomic_inc( & refcnt) |
| 145 | seq_nr等于atomic_inc_return( & seq_nr) |
| 146 | target_cpu等于padata_cpu_hash(pd, seq_nr) |
| 147 | cpu等于target_cpu |
| 148 | queue等于per_cpu_ptr(pqueue, target_cpu) |
| 150 | 加自旋锁 |
| 151 | 添加链表项 |
| 152 | 自旋锁解锁 |
| 156 | out : |
| 157 | 标记rcu锁结束的软中断 |
| 159 | 返回:err |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |