函数逻辑报告 |
Source Code:kernel\padata.c |
Create Date:2022-07-27 15:09:43 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:padata_alloc - allocate and initialize a padata instance and specify* cpumasks for serial and parallel workers
函数原型:static struct padata_instance *padata_alloc(const char *name, const struct cpumask *pcpumask, const struct cpumask *cbcpumask)
返回类型:struct padata_instance
参数:
类型 | 参数 | 名称 |
---|---|---|
const char * | name | |
const struct cpumask * | pcpumask | |
const struct cpumask * | cbcpumask |
977 | parallel_wq等于alloc_workqueue("%s_parallel", WQ_UNBOUND, 0, name) |
979 | 如果非parallel_wq则转到:err_free_inst |
982 | get_online_cpus() |
984 | serial_wq等于alloc_workqueue("%s_serial", WQ_MEM_RECLAIM | WQ_CPU_INTENSIVE, 1, name) |
986 | 如果非serial_wq则转到:err_put_cpus |
989 | 如果非分配CPU掩码则转到:err_free_serial_wq |
991 | 如果非分配CPU掩码则 |
992 | 释放CPU掩码 |
993 | 转到:err_free_serial_wq |
995 | 如果非If cpumask contains no active cpu, we mark the instance as invalid. 或非If cpumask contains no active cpu, we mark the instance as invalid. 则转到:err_free_masks |
999 | 如果非分配CPU掩码则转到:err_free_masks |
1001 | 如果非分配CPU掩码则转到:err_free_rcpumask_pcpu |
1003 | 如果非分配CPU掩码则转到:err_free_rcpumask_cbcpu |
1006 | 初始化链表头 |
1013 | 如果padata_setup_cpumasks(pinst)则转到:err_free_omask |
1016 | flags等于0 |
1020 | mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & lock) |
1028 | put_online_cpus() |
1030 | 返回:pinst |
1032 | err_free_omask : |
1033 | 释放CPU掩码 |
1034 | err_free_rcpumask_cbcpu : |
1035 | 释放CPU掩码 |
1036 | err_free_rcpumask_pcpu : |
1037 | 释放CPU掩码 |
1038 | err_free_masks : |
1039 | 释放CPU掩码 |
1040 | 释放CPU掩码 |
1041 | err_free_serial_wq : |
1043 | err_put_cpus : |
1044 | put_online_cpus() |
1046 | err_free_inst : |
1048 | err : |
1049 | 返回:NULL |
名称 | 描述 |
---|---|
padata_alloc_possible | padata_alloc_possible - Allocate and initialize padata instance.* Use the cpu_possible_mask for serial and* parallel workers.*@name: used to identify the instance |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |