STRUCT NILFS_CPSTAT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct nilfs_cpstat(9) 🌸

okay bestie, welcome to the Kernel API Manual corner of the internet πŸ’– this one's short, sweet, and honestly kind of a serve β€” we're talking about struct nilfs_cpstat, aka the lil stats blob for checkpoints. no cap, it's tiny. let's get into it πŸŽ€


✨ NAME ✨

struct nilfs_cpstat β€” checkpoint statistics πŸ¦‹

like, literally just checkpoint statistics. that's the whole vibe check, and it passed πŸ’…


🧚 SYNOPSIS 🧚

ok so deep breath, here's the whole struct, and yes you can just read it, it's not that deep:

struct nilfs_cpstat {
    __u64 cs_cno;
    __u64 cs_ncps;
    __u64 cs_nsss;
 };

three __u64s. that's it. that's the struct. main character energy from a very small cast πŸ˜­πŸ‘‘


πŸ’œ Members πŸ’œ

  • cs_cno β€” the checkpoint number πŸ”’ like, which checkpoint are we even talking about, yk?
  • cs_ncps β€” number of checkpoints πŸ‘‘ the actual count, fr fr
  • cs_nsss β€” number of snapshots 🌸 yes it's nsss with three s's, no I did not make that up, yes it's iconic

🫢 SEE ALSO 🫢

the whole friend group lives in the kernel file ./include/uapi/linux/nilfs2_api.h β€” go say hi to all of them πŸ’–:

  • struct nilfs_cpinfo(9)
  • struct nilfs_suinfo(9)
  • struct nilfs_suinfo_update(9)
  • struct nilfs_cpmode(9)
  • struct nilfs_argv(9)
  • struct nilfs_period(9)
  • struct nilfs_sustat(9)
  • struct nilfs_vinfo(9)
  • struct nilfs_vdesc(9)
  • struct nilfs_bdesc(9)

ngl that's a whole squad 🧚✨


lowkey a reminder: this is a struct of __u64 fields, so it's checkpoint statistics and nothing else β€” no hidden extras, no secret lore, just the numbers πŸ™ˆ

and that's the page, bestie πŸŽ€ sourced straight from ./include/uapi/linux, dated October 2026, and filed under struct nilfs_cpstat(9) β€” periodt πŸ’…πŸ”₯ mwah, go read the SEE ALSOs, ily πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from