函数逻辑报告 |
Source Code:kernel\workqueue.c |
Create Date:2022-07-27 10:27:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:wq_update_unbound_numa - update NUMA affinity of a wq for CPU hot[un]plug*@wq: the target workqueue*@cpu: the CPU coming up or going down*@online: whether @cpu is coming up or going down* This function is to be called from %CPU_DOWN_PREPARE, %CPU_ONLINE
函数原型:static void wq_update_unbound_numa(struct workqueue_struct *wq, int cpu, bool online)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct workqueue_struct * | wq | |
int | cpu | |
bool | online |
4077 | node等于cpu_to_node(cpu) |
4083 | lockdep_assert_held( & wq_pool_mutex) |
4109 | 否则 |
4110 | 转到:use_dfl_pwq |
4115 | 如果非pwq则 |
4116 | 打印警告信息("workqueue: allocation failed while updating NUMA affinity of \"%s\"\n", I: workqueue name ) |
4118 | 转到:use_dfl_pwq |
4122 | mutex_lock( & protects this wq ) |
4124 | 转到:out_unlock |
4126 | use_dfl_pwq : |
4127 | mutex_lock( & protects this wq ) |
4128 | spin_lock_irq( & he pool lock ) |
4130 | spin_unlock_irq( & he pool lock ) |
4132 | out_unlock : |
4133 | mutex_unlock( & protects this wq ) |
名称 | 描述 |
---|---|
workqueue_init | workqueue_init - bring workqueue subsystem fully online* This is the latter half of two-staged workqueue subsystem initialization* and invoked as soon as kthreads can be created and scheduled |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |