Function report |
Source Code:fs\io-wq.c |
Create Date:2022-07-28 20:22:42 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:io_wq_create
Proto:struct io_wq *io_wq_create(unsigned bounded, struct io_wq_data *data)
Type:struct io_wq
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned | bounded | |
| struct io_wq_data * | data |
| 1034 | wq = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
| 1038 | wqes = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
| 1039 | If Not wqes Then |
| 1051 | for_each_node(node) |
| 1053 | alloc_node = node |
| 1055 | If Not node_online(alloc_node) Then alloc_node = NUMA_NO_NODE |
| 1061 | node = alloc_node |
| 1062 | max_workers = bounded |
| 1063 | atomic_set( & nr_running, 0) |
| 1064 | If user Then |
| 1068 | atomic_set( & nr_running, 0) |
| 1070 | Process spin lock initialization( & lock) |
| 1071 | INIT_WQ_LIST( & work_list) |
| 1072 | INIT_HLIST_NULLS_HEAD( & free_list, 0) |
| 1076 | init_completion( & done) |
| 1081 | manager = Create kernel thread(Manager thread. Tasked with creating new workers, if we need them., wq, "io_wq_manager") |
| 1090 | Return wq |
| 1095 | err : |
| 1096 | for_each_node(node) |
| 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 |