|
iPXE
|
Reference counting. More...
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| void | ref_increment (struct refcnt *refcnt) |
| Increment reference count. More... | |
| void | ref_decrement (struct refcnt *refcnt) |
| Decrement reference count. More... | |
| void | ref_no_free (struct refcnt *refcnt __unused) |
| Do not free reference-counted object. More... | |
Reference counting.
Definition in file refcnt.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
| void ref_increment | ( | struct refcnt * | refcnt | ) |
Increment reference count.
| refcnt | Reference counter, or NULL |
If refcnt is NULL, no action is taken.
Definition at line 43 of file refcnt.c.
References refcnt::count, and DBGC2.
| void ref_decrement | ( | struct refcnt * | refcnt | ) |
Decrement reference count.
| refcnt | Reference counter, or NULL |
If the reference count decreases below zero, the object's free() method will be called.
If refcnt is NULL, no action is taken.
Definition at line 62 of file refcnt.c.
References refcnt::count, DBGC, DBGC2, refcnt::free, and free.
Do not free reference-counted object.
| refcnt | Reference counter |
This is meant for initializing a reference counter structure in a statically allocated object.
Definition at line 102 of file refcnt.c.
Referenced by certstore_init().
1.8.15