nilfs_ioctl_get_cpstat(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nilfs_ioctl_get_cpstat β€” get checkpoints statistics

okay bestie, this one is a kernel API manual page β€” nilfs_ioctl_get_cpstat(9), from the 9 section, the kernel-api of the manual πŸ’œ β€” and it's literally just here to tell you how to peek at checkpoint stats. Let's get into it.


✨ SYNOPSIS ✨

int nilfs_ioctl_get_cpstat (struct inode *inode , struct file *filp ,
       unsigned int cmd , void __user *argp );

that's the whole signature, no cap 🫢


🌸 ARGUMENTS 🌸

  • inode β€” the inode object. yes, that one πŸŽ€
  • filp β€” the file object, hi bestie πŸ‘‹
  • cmd β€” the ioctl's request code, the little label that says which job this is
  • argp β€” a pointer on the argument from userspace πŸ’« (userspace is handing you something, be nice to it)

πŸ‘‘ DESCRIPTION πŸ‘‘

nilfs_ioctl_get_cpstat returns information about checkpoints. periodt.

The NILFS_IOCTL_GET_CPSTAT ioctl is used by lscp, rmcp utilities and by nilfs_cleanerd daemon. so like, this isn't some obscure little guy β€” actual tools are out here relying on it πŸ”₯

The checkpoint statistics get copied to the userspace memory pointed to by argp. that's it, that's the whole vibe β€” stats from kernel land, yeeted into your buffer πŸ’…


πŸ’€ RETURN πŸ’€

0 on success, or one of the following negative error codes on failure:

  • -EFAULT β€” Failure during getting checkpoints statistics.
  • -EIO β€” I/O error.
  • -ENOMEM β€” Insufficient memory available.
bestie if you get a negative number back, that's a no. don't act surprised 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./fs/nilfs2/ioctl.c and, like, the entire friend group:

no because that's a whole contact list and every single one of them is a real one 🧚


okay that's the page!! mwah πŸ’– this little queen lives in ./fs/nilfs2 and her version stamp says October 2026, filed under nilfs_ioctl_get_cpstat(9) β€” go forth and get those checkpoint stats, bestie, iykyk 🌈⭐

πŸ“¦ where this page comes from