STRUCT SBITMAP_WORD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct_sbitmap_word(9) ✨

okay so bestie, welcome to the Kernel API Manual entry for struct sbitmap_word β€” it's a thing, it's iconic, and you're gonna get it. Let's go πŸ’…


🌸 NAME 🌸

struct sbitmap_word β€” literally just a word in a &struct sbitmap. that's the whole vibe. periodt.


πŸŽ€ SYNOPSIS πŸŽ€

struct sbitmap_word {
    unsigned long word;
    unsigned long cleared;
    raw_spinlock_t swap_lock;
 };

three fields. no more, no less. she's simple, she's efficient, she's giving main character energy in the smallest way possible πŸ¦‹


πŸ’– Members πŸ’–

  • word β€” the word that's holding the free bits. yes bestie, this is where the "what's available" lives 🫢
  • cleared β€” the word holding the cleared bits. keeping receipts of what's been cleared, ngl that's very organized of her πŸ’€
  • swap_lock β€” a lock that serializes simultaneous updates of ->word and ->cleared. so like, if two threads try to touch both at once? she says one at a time, please πŸ™ˆ

🌈 SEE ALSO 🌈

the whole friend group πŸ’œ β€” this struct does not exist alone, she's part of a whole ecosystem:

Kernel file ./include/linux/sbitmap.h, plus:


and that's the page bestie, you ATE that reading session πŸ“ this one came from the kernel source at ./include/linux and it's dated October 2026 β€” so go forth and be the most knowledgeable person in the group chat, iykyk πŸ”₯πŸ‘‘


πŸ“¦ where this page comes from