Function report |
Source Code:kernel\rcu\srcutree.c |
Create Date:2022-07-28 10:18:27 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Returns approximate total of the readers' ->srcu_lock_count[] values* for the rank of per-CPU counters specified by idx.
Proto:static unsigned long srcu_readers_lock_idx(struct srcu_struct *ssp, int idx)
Type:unsigned long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct srcu_struct * | ssp | |
| int | idx |
| 250 | sum = 0 |
| 252 | for_each_possible_cpu(cpu) |
| 253 | cpuc = per_cpu_ptr(sda, cpu) |
| 255 | sum += READ_ONCE(srcu_lock_count[idx]) |
| 257 | Return sum |
| Name | Describe |
|---|---|
| srcu_readers_active_idx_check | Return true if the number of pre-existing readers is determined to* be zero. |
| 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 |