Function report |
Source Code:kernel\workqueue.c |
Create Date:2022-07-28 09:27:47 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:destroy_workqueue - safely terminate a workqueue*@wq: target workqueue* Safely destroy a workqueue. All work currently pending will be done first.
Proto:void destroy_workqueue(struct workqueue_struct *wq)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct workqueue_struct * | wq |
| 4349 | workqueue_sysfs_unregister(wq) |
| 4355 | If MD: rescue worker Then |
| 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 | stop a thread |
| 4372 | mutex_lock( & wq_pool_mutex) |
| 4373 | mutex_lock( & protects this wq ) |
| 4375 | spin_lock_irq( & he pool lock ) |
| 4377 | pr_warn("%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 | Return |
| 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) |
| 4397 | mutex_unlock( & wq_pool_mutex) |
| 4399 | If Not (hot fields used during command issue, aligned to cacheline & WQ_UNBOUND) Then |
| 4400 | wq_unregister_lockdep(wq) |
| 4406 | Else |
| 4412 | for_each_node(node) |
| 4422 | pwq = PW: only for unbound wqs |
| 4423 | PW: only for unbound wqs = NULL |
| Name | Describe |
|---|---|
| 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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |