| 函数逻辑报告 | 
| Source Code: kernel\workqueue.c | Create Date:2022-07-27 10:28:05 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:destroy_workqueue - safely terminate a workqueue*@wq: target workqueue* Safely destroy a workqueue. All work currently pending will be done first.
函数原型:void destroy_workqueue(struct workqueue_struct *wq)
返回类型:void
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct workqueue_struct * | wq | 
| 4349 | workqueue_sysfs_unregister(wq) | 
| 4355 | 如果MD: rescue worker 则 | 
| 4356 | rescuer等于MD: rescue worker | 
| 4359 | spin_lock_irq( & wq_mayday_lock) | 
| 4360 | MD: rescue worker = NULL | 
| 4361 | spin_unlock_irq( & wq_mayday_lock) | 
| 4364 | 结束线程的运行 | 
| 4365 | 释放内存 | 
| 4372 | mutex_lock( & wq_pool_mutex) | 
| 4373 | mutex_lock( & protects this wq ) | 
| 4375 | spin_lock_irq( & he pool lock ) | 
| 4377 | 打印警告信息("%s: %s has the following busy pwq\n", __func__, I: workqueue name ) | 
| 4380 | spin_unlock_irq( & he pool lock ) | 
| 4381 | mutex_unlock( & protects this wq ) | 
| 4382 | mutex_unlock( & wq_pool_mutex) | 
| 4384 | 返回 | 
| 4386 | spin_unlock_irq( & he pool lock ) | 
| 4388 | mutex_unlock( & protects this wq ) | 
| 4389 | mutex_unlock( & wq_pool_mutex) | 
| 4395 | mutex_lock( & wq_pool_mutex) | 
| 4396 | 删除不需要重新初始化的列表项 | 
| 4397 | mutex_unlock( & wq_pool_mutex) | 
| 4400 | wq_unregister_lockdep(wq) | 
| 4406 | 否则 | 
| 4412 | for_each_node(node) | 
| 4422 | pwq等于PW: only for unbound wqs | 
| 4423 | PW: only for unbound wqs = NULL | 
| 名称 | 描述 | 
|---|---|
| alloc_workqueue | |
| test_ww_mutex_exit | |
| __padata_free | |
| padata_alloc | padata_alloc - allocate and initialize a padata instance and specify* cpumasks for serial and parallel workers | 
| z3fold_create_pool | z3fold_create_pool() - create a new z3fold pool*@name: pool name*@gfp: gfp flags when allocating the z3fold pool structure*@ops: user-defined operations for the z3fold pool* Return: pointer to the new z3fold pool or NULL if the metadata allocation* failed. | 
| z3fold_destroy_pool | z3fold_destroy_pool() - destroys an existing z3fold pool*@pool: the z3fold pool to be destroyed* The pool should be emptied before this function is called. | 
| sb_init_dio_done_wq | Create workqueue for deferred direct IO completions. We allocate the* workqueue when it's first needed. This avoids creating workqueue for* filesystems that don't need it and also allows us to create the workqueue | 
| fscrypt_init | scrypt_init() - Set up for fs encryption. | 
| fsverity_exit_workqueue | |
| bioset_exit | set_exit - exit a bioset initialized with bioset_init()* May be called on a zeroed but uninitialized bioset (i.e. allocated with* kzalloc()). | 
| generic_shutdown_super | generic_shutdown_super - common helper for ->kill_sb()*@sb: superblock to kill* generic_shutdown_super() does all fs-independent work on superblock* shutdown | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |