Function report |
Source Code:include\linux\percpu-refcount.h |
Create Date:2022-07-28 05:38:00 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Internal helper. Don't use outside percpu-refcount proper. The* function doesn't return the pointer and let the caller test it for NULL* because doing so forces the compiler to generate two conditional
Proto:static inline bool __ref_is_percpu(struct percpu_ref *ref, unsigned long __percpu **percpu_countp)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct percpu_ref * | ref | |
| unsigned long __percpu ** | percpu_countp |
| 161 | percpu_ptr = READ_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.) |
| 169 | If Value for the false possibility is greater at compile time(percpu_ptr & __PERCPU_REF_ATOMIC_DEAD) Then Return false |
| 172 | percpu_countp = percpu_ptr |
| 173 | Return true |
| Name | Describe |
|---|---|
| percpu_ref_resurrect | percpu_ref_resurrect - modify a percpu refcount from dead to live*@ref: perpcu_ref to resurrect* Modify @ref so that it's in the same state as before percpu_ref_kill() was* called |
| 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 |