Function report |
Source Code:kernel\locking\percpu-rwsem.c |
Create Date:2022-07-28 09:48:40 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__percpu_down_read
Proto:int __percpu_down_read(struct percpu_rw_semaphore *sem, int try)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct percpu_rw_semaphore * | sem | |
| int | try |
| 61 | smp_mb() |
| 67 | If Value is more likely to compile time(!smp_load_acquire( & readers_block)) Then Return 1 |
| 74 | __percpu_up_read(sem) |
| 76 | If try Then Return 0 |
| 89 | this_cpu_inc( * read_count) |
| 93 | Return 1 |
| 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 |