函数逻辑报告 |
Source Code:kernel\padata.c |
Create Date:2022-07-27 15:09:11 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Allocate and initialize the internal cpumask dependend resources.
函数原型:static struct parallel_data *padata_alloc_pd(struct padata_shell *ps)
返回类型:struct parallel_data
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct padata_shell * | ps |
| 443 | pqueue等于alloc_percpu(structpadata_parallel_queue) |
| 444 | 如果非pqueue则转到:err_free_pd |
| 447 | squeue等于alloc_percpu(structpadata_serial_queue) |
| 448 | 如果非squeue则转到:err_free_pqueue |
| 452 | 如果pd_setup_cpumasks(pd, pcpumask, cbcpumask)则转到:err_free_squeue |
| 457 | atomic_set( & seq_nr, - 1) |
| 458 | atomic_set( & reorder_objects, 0) |
| 459 | atomic_set( & refcnt, 1) |
| 460 | spin_lock_init( & lock) |
| 462 | INIT_WORK( & reorder_work, invoke_padata_reorder) |
| 464 | 返回:pd |
| 466 | err_free_squeue : |
| 467 | 释放内存 |
| 468 | err_free_pqueue : |
| 469 | 释放内存 |
| 470 | err_free_pd : |
| 472 | err : |
| 473 | 返回:NULL |
| 名称 | 描述 |
|---|---|
| padata_replace_one | Replace the internal control structure with a new one. |
| padata_alloc_shell | padata_alloc_shell - Allocate and initialize padata shell.*@pinst: Parent padata_instance object. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |