函数逻辑报告 |
Source Code:kernel\workqueue.c |
Create Date:2022-07-27 10:26:41 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:workqueue_select_cpu_near - Select a CPU based on NUMA node*@node: NUMA node ID that we want to select a CPU from* This function will attempt to find a "random" cpu available on a given* node
函数原型:static int workqueue_select_cpu_near(int node)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| int | node |
| 1536 | 如果非unbound NUMA affinity enabled 则返回:WORK_CPU_UNBOUND |
| 1540 | 如果node小于0或node大于等于MAX_NUMNODES或非NUMA节点状态(node)则返回:WORK_CPU_UNBOUND |
| 1545 | 如果node恒等于cpu_to_node(cpu)则返回:cpu |
| 1552 | 返回:如果cpu小于nr_cpu_ids则cpu否则WORK_CPU_UNBOUND |
| 名称 | 描述 |
|---|---|
| queue_work_node | queue_work_node - queue work on a "random" cpu for a given NUMA node*@node: NUMA node that we are targeting the work for*@wq: workqueue to use*@work: work to queue* We queue the work to a "random" CPU within a given NUMA node |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |