Function report |
Source Code:lib\percpu-refcount.c |
Create Date:2022-07-28 06:24:50 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:percpu_ref_switch_to_atomic - switch a percpu_ref to atomic mode*@ref: percpu_ref to switch to atomic mode*@confirm_switch: optional confirmation callback* There's no reason to use this function for the usual reference counting.
Proto:void percpu_ref_switch_to_atomic(struct percpu_ref *ref, percpu_ref_func_t *confirm_switch)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct percpu_ref * | ref | |
| percpu_ref_func_t * | confirm_switch |
| 266 | spin_lock_irqsave( & percpu_ref_switch_lock, flags) |
| 268 | force_atomic = true |
| Name | Describe |
|---|---|
| percpu_ref_switch_to_atomic_sync | percpu_ref_switch_to_atomic_sync - switch a percpu_ref to atomic mode*@ref: percpu_ref to switch to atomic mode* Schedule switching the ref to atomic mode, and wait for the* switch to complete. Caller must ensure that no other thread |
| 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 |