STRUCT FUTEX_MM_PHASH(9)
π NAME π
okay so bestie, welcome to the struct futex_mm_phash(9) page in the Kernel API Manual π this struct is the futex private hash related per MM data β literally the per-MM data situation for futex private hash stuff, and itβs giving very organized main character energy β¨
π¦ SYNOPSIS π¦
struct futex_mm_phash {
struct mutex lock;
struct futex_private_hash *hash;
struct futex_private_hash *hash_new;
unsigned long batches;
struct rcu_head rcu;
atomic_long_t atomic;
unsigned int __percpu *ref;
};
π Members π
lockβ the Mutex protecting the private hash operations, so nobodyβs out here messing with them at the same time πhashβ an RCU managed pointer to the private hash; itβs the main pointer bestie β¨hash_newβ pointer to a newly allocated private hash π¦batchesβ the batch state for RCU synchronization, keeping that sync timeline cute and accounted for πrcuβ the RCU head forcall_rcuβ yep,call_rcuexactly, no cap πatomicβ the aggregate value forhash_refπrefβ the per CPU reference counter for a private hash, tracking refs per CPU fr fr π
π SEE ALSO π
- Kernel file
./include/linux/futex_types.h struct futex_sched_data(9)struct futex_unlock_cs_range(9)struct futex_unlock_cs_ranges(9)struct futex_mm_data(9)
thatβs the whole page, bestie π«Ά sourced from ./include/linux, dated October 2026, and filed under struct futex_mm_phash(9) β slay πβ¨
π¦ 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