STRUCT NILFS_DIRECT_NODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct nilfs_direct_node β€” the header of the built-in bmap array, bestie ✨ (it's from the Kernel API Manual, iykyk)

Okay so picture this: you've got this little struct whose whole entire job is to sit at the front of the built-in bmap array and hold the flags. That's it. That's the gig. Small but iconic, honestly πŸŽ€


✨ SYNOPSIS ✨

struct nilfs_direct_node {
    __u8 dn_flags;
    __u8 pad[7];
 };

That's the whole thing, no cap β€” two members and vibes πŸ’…


πŸ¦‹ Members πŸ¦‹

  • dn_flags β€” the flags, literally. It's a __u8, it holds flags, and it's the main character here πŸ‘‘
  • pad β€” padding. It's a __u8 array of seven, just there to fill out the space so everything lines up all cute and aligned 🌸

So yes, the padding is pad[7] β€” seven whole bytes of "please don't touch, I'm just here for the alignment" energy πŸ™ˆ


🌈 SEE ALSO 🌈

  • Kernel file ./include/uapi/linux/nilfs2_ondisk.h πŸ‘€ β€” this is where the struct actually lives, go look at it, fr fr
  • struct nilfs_inode(9)
  • struct nilfs_super_root(9)
  • struct nilfs_super_block(9)
  • struct nilfs_finfo(9)
  • struct nilfs_binfo_v(9)
  • struct nilfs_binfo_dat(9)
  • union nilfs_binfo(9)
  • struct nilfs_segment_summary(9)
  • struct nilfs_btree_node(9)
  • struct nilfs_palloc_group_desc(9)
  • struct nilfs_dat_entry(9)
  • struct nilfs_snapshot_list(9)
  • struct nilfs_checkpoint(9)
  • struct nilfs_cpfile_header(9)
  • struct nilfs_segment_usage(9)
  • struct nilfs_sufile_header(9)

Like, that's the whole nilfs2 fam right there β€” go read them all, they're all slaying in their own little way 🫢


And that's the page! πŸŽ‰ Signing off from ./include/uapi/linux, dated October 2026 β€” stay struct-y, bestie, and remember: even a 8-byte header can have main character energy πŸ’œπŸ’«

πŸ“¦ where this page comes from