rcuref_put(9)
πΈ rcuref_put(9) πΈ
okay bestie, welcome to the Kernel API Manual page for rcuref_put(9) β itβs giving reference-count release realness, and weβre gonna get into it. π
β¨ NAME β¨
rcuref_put - - Release one reference for a rcuref reference count
π SYNOPSIS π
bool rcuref_put (rcuref_t *ref );
π¦ ARGUMENTS π¦
refβ Pointer to the reference count. thatβs the thing youβre passing in, bestie.
π DESCRIPTION π
You can invoke this from any context. periodt.
It provides release memory ordering, such that prior loads and stores are done before, and it provides an acquire ordering on success such that free must come after. no cap.
It returns true if this was the last reference with no future references possible. This signals the caller that it can safely schedule the object, which is protected by the reference counter, for deconstruction. slay, thatβs the green light. π’
It returns false if there are still active references or the put raced with a concurrent get/put pair. Caller is not allowed to deconstruct the protected object. π«
π SEE ALSO π
Kernel file ./include/linux/rcuref.h β rcuref_init(9), rcuref_read(9), rcuref_is_dead(9), rcuref_get(9), rcuref_put_rcusafe(9).
byeee π«Ά β source ./include/linux, dated October 2026, and this is literally the rcuref_put(9) page. mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms