__must_not_hold(9)
π NAME π
Okay so __must_not_hold is a function attribute, and its whole personality is: caller must not hold context lock β¨. This page is __must_not_hold(9) from the Kernel API Manual, and yes, the name is literally the instruction. No cap π
.
β¨ SYNOPSIS β¨
The signature is lowkey just this, bestie β copy it exactly:
__must_not_hold (... );
π ARGUMENTS π
...β variable arguments. Thatβs the whole list, bestie π«Ά.
π DESCRIPTION π
__must_not_hold is a function attribute. It declares that the caller must not hold the given context lock instance(s) π.
Like, the function is out here saying βbestie, do not show up holding that lock.β Itβs giving boundaries, and honestly the vibe check is strict but fair β¨.
π¦ SEE ALSO π¦
Kernel file: ./include/linux/compiler-context-analysis.h
__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)__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)__acquire_shared_ret(9)
Thatβs the whole page, bestie π. Source: ./include/linux Β· date: October 2026 Β· manual name: __must_not_hold(9). 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