__acquire_shared_ret(9)
β¨ __acquire_shared_ret(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a lil helper macro and she's lowkey iconic for what she does β let's get into it π«Ά
πΈ NAME πΈ
__acquire_shared_ret β the helper that acquires the context lock shared of a return value π
like, literally what it says on the tin, no cap.
β¨ SYNOPSIS β¨
__acquire_shared_ret (call , ret_expr );
that's the whole vibe. two things go in, annotation magic comes out π
π¦ ARGUMENTS π¦
callβ the call expression π« like, the actual thing you're calling, bestie.ret_exprβ the acquire shared expression that uses__retπ this is the part where__retshows up and does her main character thing.
π SEE ALSO π
all her besties live in the kernel file ./include/linux/compiler-context-analysis.h π so go say hi to the whole group chat:
__guarded_by(9)__pt_guarded_by(9)context_lock_struct(9)disable_context_analysis(9)enable_context_analysis(9)__no_context_analysis(9)context_unsafe(9)__context_unsafe(9)context_unsafe_alias(9)token_context_lock(9)token_context_lock_instance(9)__must_hold(9)__must_not_hold(9)__acquires(9)__cond_acquires(9)__releases(9)__cond_releases(9)__acquire(9)__release(9)__must_hold_shared(9)__acquires_shared(9)__cond_acquires_shared(9)__releases_shared(9)__acquire_shared(9)__release_shared(9)__acquire_ret(9)
like, the entire context-analysis friend group fr fr π§π
okay that's the page!! mwah π this one came from ./include/linux and she's dated October 2026 β so if you're reading this from the future β hi, slay, hope the kernel's treating you well πΈππ
π¦ 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