refcount_set(9)
π refcount_set(9) π
okay so welcome to the Kernel API Manual page for refcount_set(9), bestie. This one is short, sweet, and honestly kind of a vibe.
β¨ NAME β¨
refcount_set β set a refcount's value. That's it. That's the whole assignment. Iconic, lowkey. π
π SYNOPSIS π
Signature check, no cap:
void refcount_set (refcount_t *r , int n );
That's the exact call, spaces and all. Periodt.
π¦ ARGUMENTS π¦
rβ the refcount. Therefcount_tbestie in question. π«Άnβ value to which the refcount will be set. The number it's getting set to, fr fr. β¨
π SEE ALSO π
Kernel file: ./include/linux/refcount.h β yes, that exact path. The linked crew is giving kernel-header group chat:
refcount_set_release(9)π«Άrefcount_read(9)πΈrefcount_add_not_zero(9)πrefcount_add_not_zero_acquire(9)π¦refcount_add(9)πrefcount_inc_not_zero(9)β¨refcount_inc_not_zero_acquire(9)πrefcount_inc(9)πrefcount_sub_and_test(9)βrefcount_dec_and_test(9)πrefcount_dec(9)π
All of those are linked from that kernel file, and yes, every single one keeps its (9). iykyk.
okay bestie, that's the page. Cute sign-off time: source/version ./include/linux, date October 2026, and page refcount_set(9). Stay slay, and may your refcount value be the one you set it to. πβ¨
π¦ 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