STRUCT NILFS_BMAP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct nilfs_bmap(9) πŸ’–

okay so welcome to the struct nilfs_bmap(9) page β€” that's the section 9 entry in the Kernel API Manual, bestie, and we're about to get so cozy with a bmap structure πŸŽ€


✨ NAME ✨

struct nilfs_bmap β€” the bmap structure itself, no cap, that's literally it πŸ¦‹


🌸 SYNOPSIS 🌸

struct nilfs_bmap {
    union {
      __u8 u_flags;
      __le64 u_data[NILFS_BMAP_SIZE / sizeof(__le64)];
    } b_u;
    struct rw_semaphore b_sem;
    struct inode *b_inode;
    const struct nilfs_bmap_operations *b_ops;
    __u64 b_last_allocated_key;
    __u64 b_last_allocated_ptr;
    int b_ptr_type;
    int b_state;
    __u16 b_nchildren_per_block;
 };

like, look at her. main character struct energy. copy it exactly, don't you dare retype a field name wrong πŸ’…


🧚 Members 🧚

okay bestie, let's go field by field, one at a time, no skipping πŸ”₯

  • b_u β€” raw data, the whole vibe, unfiltered πŸ™ˆ
  • b_sem β€” a semaphore, she's the bouncer at the door πŸ’€
  • b_inode β€” the owner of the bmap, iykyk πŸ‘‘
  • b_ops β€” the bmap operation table, the whole playbook fr fr πŸ“–
  • b_last_allocated_key β€” the last allocated key for a data block, she remembers 🌸
  • b_last_allocated_ptr β€” the last allocated ptr for a data block, also remembered 🫢
  • b_ptr_type β€” pointer type ⭐
  • b_state β€” state, that's the whole description, that's the tweet 🐦
  • b_nchildren_per_block β€” maximum number of child nodes for non-root nodes β€” note the non-root part, that's load-bearing 🧠

🌈 SEE ALSO 🌈

go read these next, bestie, they're all connected:

  • Kernel file ./fs/nilfs2/bmap.h
  • union nilfs_bmap_ptr_req(9)
  • struct nilfs_bmap_stats(9)
  • struct nilfs_bmap_operations(9)
  • struct nilfs_bmap_store(9)

lowkey a little reminder: everything above is exactly what the page says, so don't go inventing behaviour for these fields, mwah 🫢

and that's the whole page!! ate and left no crumbs πŸ’…βœ¨ β€” this one's from ./fs/nilfs2, dated October 2026, and yeah, it's the struct nilfs_bmap(9) page, iconic, periodt πŸ’–

πŸ“¦ where this page comes from