STRUCT NILFS_CPFILE_HEADER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay bestie so this is the Kernel API Manual page for struct nilfs_cpfile_header β€” literally the checkpoint file header, and it's giving "small struct, big responsibility" energy. it's a tiny little glow-up of a struct and we're gonna walk through it together, no cap πŸŽ€


✨ NAME ✨

struct nilfs_cpfile_header β€” the checkpoint file header. that's it, that's the whole vibe. πŸ‘‘


🌸 SYNOPSIS 🌸

struct nilfs_cpfile_header {
    __le64 ch_ncheckpoints;
    __le64 ch_nsnapshots;
    struct nilfs_snapshot_list ch_snapshot_list;
};

look at her. three fields. immaculate. πŸ¦‹


🫢 MEMBERS 🫢

so the members, in order, exactly as they appear, let's go:

  • ch_ncheckpoints β€” the number of checkpoints. yes it's a __le64. yes little-endian. we respect the byte order in this house πŸ’…
  • ch_nsnapshots β€” the number of snapshots. also a __le64. she's counting, she's organized, she's iconic.
  • ch_snapshot_list β€” the snapshot list itself, typed as struct nilfs_snapshot_list. it's the friend group chat of snapshots and she's holding it down 🫢

⭐ SEE ALSO ⭐

the whole extended universe, iykyk β€” all of these live in the kernel file ./include/uapi/linux/nilfs2_ondisk.h:

  • 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_direct_node(9)
  • struct nilfs_palloc_group_desc(9)
  • struct nilfs_dat_entry(9)
  • struct nilfs_snapshot_list(9)
  • struct nilfs_checkpoint(9)
  • struct nilfs_segment_usage(9)
  • struct nilfs_sufile_header(9)

that's sixteen whole references bestie, we read the whole syllabus πŸ“šβœ¨

ngl, if you only remember one thing: this is the checkpoint file header, so go read struct nilfs_checkpoint(9) next. it's literally right there in the list. do it. 🫡

and that's the page!! no notes, ate, left no crumbs πŸ’… mwah πŸ’‹

little sign-off so you don't forget where this came from: this page lives at ./include/uapi/linux, dated October 2026, and if you ever need to find it again she's filed under struct nilfs_cpfile_header(9). periodt. πŸŒˆπŸ‘‘πŸŽ€

πŸ“¦ where this page comes from