MAPLE TREE FLAGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌳 Maple tree flags 🌳

okay bestie, welcome to the kernel API manual πŸ’… this page is literally just the flag glossary for maple trees β€” the data structure, not the syrup kind (sadly 😭). it's giving "cheat sheet energy" and honestly? iconic. every flag, every mask, every constant, all right here. no cap, nothing skipped. 🫢


✨ THE FLAGS ✨

  • MT_FLAGS_ALLOC_RANGE β€” tracks gaps in this tree πŸ•³οΈ like it's keeping receipts on where the empty spots are
  • MT_FLAGS_USE_RCU β€” operate in RCU mode ⚑ the whole tree runs in RCU mode with this one
  • MT_FLAGS_HEIGHT_OFFSET β€” the position of the tree height in the flags πŸ“ that's where the height value lives inside the flags
  • MT_FLAGS_HEIGHT_MASK β€” the mask for the maple tree height value 🎭 mask goes on, height value gets pulled out
  • MT_FLAGS_LOCK_MASK β€” how the mt_lock is used πŸ” controls how mt_lock gets used
  • MT_FLAGS_LOCK_IRQ β€” acquired irq-safe 🌈 acquired irq-safe, bestie
  • MT_FLAGS_LOCK_BH β€” acquired bh-safe πŸ¦‹ acquired bh-safe, no stress
πŸ’€ heads up: MT_FLAGS_LOCK_EXTERN means mt_lock is not used β€” so if you see that flag, don't go looking for the lock, it's not invited to the party πŸ™ˆ
  • MT_FLAGS_LOCK_EXTERN β€” mt_lock is not used 🚫 the lock is simply not used here
  • MAPLE_HEIGHT_MAX β€” the largest height that can be stored πŸ‘‘ the biggest height that can be stored, periodt

πŸ‘€ SEE ALSO πŸ‘€

kernel file ./include/linux/maple_tree.h β€” go read it, it's the main character πŸ“–βœ¨

and then the whole friend group of references, all of them, in order, fr fr:


that's the whole page, bestie, you ate it up πŸ’– this gem comes to you from ./include/linux and is dated October 2026 β€” so go forth, set those flags, and slay πŸŽ€πŸŒŸ

πŸ“¦ where this page comes from