nilfs_ioctl_get_cpstat(9)
π 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 isargpβ 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:
nilfs_ioctl_wrap_copy(9)nilfs_fileattr_get(9)nilfs_fileattr_set(9)nilfs_ioctl_getversion(9)nilfs_ioctl_change_cpmode(9)nilfs_ioctl_delete_checkpoint(9)nilfs_ioctl_do_get_cpinfo(9)nilfs_ioctl_do_get_suinfo(9)nilfs_ioctl_get_sustat(9)nilfs_ioctl_do_get_vinfo(9)nilfs_ioctl_do_get_bdescs(9)nilfs_ioctl_get_bdescs(9)nilfs_ioctl_move_inode_block(9)nilfs_ioctl_move_blocks(9)nilfs_ioctl_delete_checkpoints(9)nilfs_ioctl_free_vblocknrs(9)nilfs_ioctl_mark_blocks_dirty(9)nilfs_ioctl_clean_segments(9)nilfs_ioctl_sync(9)nilfs_ioctl_resize(9)nilfs_ioctl_trim_fs(9)nilfs_ioctl_set_alloc_range(9)nilfs_ioctl_get_info(9)nilfs_ioctl_set_suinfo(9)nilfs_ioctl_get_fslabel(9)nilfs_ioctl_set_fslabel(9)
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
- 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