函数逻辑报告 |
Source Code:kernel\workqueue.c |
Create Date:2022-07-27 10:26:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:reate_worker - create a new workqueue worker*@pool: pool the new worker will belong to* Create and start a new worker which is attached to @pool.* CONTEXT:* Might sleep. Does GFP_KERNEL allocations.* Return:* Pointer to the newly created worker.
函数原型:static struct worker *create_worker(struct worker_pool *pool)
返回类型:struct worker
参数:
类型 | 参数 | 名称 |
---|---|---|
struct worker_pool * | pool |
1904 | id等于负1 |
1908 | id等于ida_simple_get( & worker IDs for task name , 0, 0, GFP_KERNEL) |
1916 | I: worker id 等于id |
1924 | I: worker task 等于kthread_create_on_node(worker_thread, worker, I: the associated node ID , "kworker/%s", id_buf) |
1936 | spin_lock_irq( & he pool lock ) |
1937 | nr_workers自加 |
1939 | 唤醒中断线程 |
1940 | spin_unlock_irq( & he pool lock ) |
1942 | 返回:worker |
1944 | fail : |
1945 | 如果id大于等于0则ida_simple_remove( & worker IDs for task name , id) |
1947 | 释放内存 |
1948 | 返回:NULL |
名称 | 描述 |
---|---|
maybe_create_worker | maybe_create_worker - create a new worker if necessary*@pool: pool to create a new worker for* Create a new worker for @pool if necessary |
get_unbound_pool | get_unbound_pool - get a worker_pool with the specified attributes*@attrs: the attributes of the worker_pool to get* Obtain a worker_pool which has the same attributes as @attrs, bump the* reference count and return it |
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 插件可实现:逻辑报告 代码生成和批量转换代码 |