Function report |
Source Code:kernel\workqueue.c |
Create Date:2022-07-28 09:27:35 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:alloc_and_link_pwqs
Proto:static int alloc_and_link_pwqs(struct workqueue_struct *wq)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct workqueue_struct * | wq |
| 4142 | If Not (hot fields used during command issue, aligned to cacheline & WQ_UNBOUND) Then |
| 4143 | I: per-cpu pwqs = alloc_percpu(structpool_workqueue) |
| 4144 | If Not I: per-cpu pwqs Then Return -ENOMEM |
| 4147 | for_each_possible_cpu(cpu) |
| 4148 | pwq = per_cpu_ptr(I: per-cpu pwqs , cpu) |
| 4150 | cpu_pools = per_cpu(he per-cpu worker pools , cpu) |
| 4155 | mutex_lock( & protects this wq ) |
| 4157 | mutex_unlock( & protects this wq ) |
| 4159 | Return 0 |
| 4162 | get_online_cpus() |
| 4166 | WARN(!ret && (next != & WR: node on wq->pwqs || prev != & WR: node on wq->pwqs ), "ordering guarantee broken for workqueue %s\n", I: workqueue name ) |
| 4169 | Else |
| 4172 | put_online_cpus() |
| 4174 | Return ret |
| Name | Describe |
|---|---|
| alloc_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 |