STRUCT NILFS_DIRECT_NODE(9)
π 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__u8array 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
- 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