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_kill_and_confirm - drop the initial ref and schedule confirmation*@ref: percpu_ref to kill*@confirm_kill: optional confirmation callback* Equivalent to percpu_ref_kill() but also schedules kill confirmation if*@confirm_kill is not NULL
Proto:void percpu_ref_kill_and_confirm(struct percpu_ref *ref, percpu_ref_func_t *confirm_kill)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct percpu_ref * | ref | |
| percpu_ref_func_t * | confirm_kill |
| 343 | spin_lock_irqsave( & percpu_ref_switch_lock, flags) |
| 345 | WARN_ONCE(* The low bit of the pointer indicates whether the ref is in percpu * mode; if set, then get/put will manipulate the atomic_t. & __PERCPU_REF_DEAD, "%s called more than once on %ps!", __func__, release) |
| 348 | * The low bit of the pointer indicates whether the ref is in percpu * mode; if set, then get/put will manipulate the atomic_t. |= __PERCPU_REF_DEAD |
| Name | Describe |
|---|---|
| percpu_ref_kill | percpu_ref_kill - drop the initial ref*@ref: percpu_ref to kill* Must be used to drop the initial ref on a percpu refcount; must be called* precisely once before shutdown.* Switches @ref into atomic mode before gathering up the percpu counters |
| 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 |