mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
Document the fact that a zeroed-out refcounted object will behave in
the most generally useful way.
This commit is contained in:
@@ -12,6 +12,11 @@
|
|||||||
*
|
*
|
||||||
* This data structure is designed to be embedded within a
|
* This data structure is designed to be embedded within a
|
||||||
* reference-counted object.
|
* reference-counted object.
|
||||||
|
*
|
||||||
|
* Reference-counted objects are freed when their reference count
|
||||||
|
* drops below zero. This means that a freshly allocated-and-zeroed
|
||||||
|
* reference-counted object will be freed on the first call to
|
||||||
|
* ref_put().
|
||||||
*/
|
*/
|
||||||
struct refcnt {
|
struct refcnt {
|
||||||
/** Current reference count
|
/** Current reference count
|
||||||
|
|||||||
Reference in New Issue
Block a user