nilfs_ioctl_do_get_cpinfo(9)
β¨ nilfs_ioctl_do_get_cpinfo(9) β¨
okay so bestie, this page is from the Kernel API Manual and it's literally all about nilfs_ioctl_do_get_cpinfo β a callback method that gets info about checkpoints. no cap, that's the whole vibe. π
π NAME
nilfs_ioctl_do_get_cpinfo β callback method getting info about checkpoints. slay.
π§Ύ SYNOPSIS
bestie, here's the signature, copy it exactly:
ssize_t nilfs_ioctl_do_get_cpinfo (struct the_nilfs *nilfs , __u64 *posp
, int flags , void *buf , size_t size , size_t nmembs );
π ARGUMENTS
okay so let's break down the arguments, they're giving main character energy:
nilfsβ the nilfs object. vibe check: it's the filesystem we're working with.pospβ a pointer on array of checkpoint's numbers. iykyk.flagsβ checkpoint mode (checkpoint or snapshot). pick your fighter.bufβ buffer for storing checkpoints' info. literally where the tea gets stored.sizeβ size in bytes of one checkpoint info item in array. so specific.nmembsβ number of checkpoints in array (numbers and infos). the count, the whole count, and nothing but the count.
π DESCRIPTION
so the nilfs_ioctl_do_get_cpinfo function returns info about requested checkpoints. obsessed. the NILFS_IOCTL_GET_CPINFO ioctl is used in the lscp utility and by the nilfs_cleanerd daemon. fr fr, that's the whole plot.
π₯ RETURN
it returns the count of nilfs_cpinfo structures in the output buffer. periodt. π
π SEE ALSO
bestie, go look at the kernel file ./fs/nilfs2/ioctl.c and also these functions, they're all iconic:
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_get_cpstat(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)
xoxo, this page came from the kernel source at ./fs/nilfs2 and it's dated October 2026. catch you later bestie π
π¦ 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