nilfs_ioctl_do_get_vinfo(9)
π nilfs_ioctl_do_get_vinfo β the Kernel API Manual, bestie edition β¨
Okay so this page is nilfs_ioctl_do_get_vinfo(9) from the Kernel API Manual, and it's literally the callback that fetches your virtual block info. Tiny function, big group-chat energy. Let's get into it π
β¨ NAME β¨
nilfs_ioctl_do_get_vinfo β the callback method that gets virtual blocks info π¦
πΈ SYNOPSIS πΈ
ssize_t nilfs_ioctl_do_get_vinfo (struct the_nilfs *nilfs , __u64 *posp
, int flags , void *buf , size_t size , size_t nmembs );
That's the whole signature, no cap. Six arguments, one return type, all of it exact π
π ARGUMENTS π
nilfsβ the nilfs object, obvs. This is your main character right here πpospβ not used π literally just vibing there, ignoredflagsβ not used too π also ignored, don't even worry about itbufβ the buffer where the array ofnilfs_vinfostructures gets stored πsizeβ size in bytes of one vinfo item in the array, so like, the per-item footprint nglnmembsβ the count of vinfos in the array. how many we're working with, fr fr
π₯ DESCRIPTION π₯
So the nilfs_ioctl_do_get_vinfo function returns information on virtual block addresses β¨ That's the whole gig and it ate.
The NILFS_IOCTL_GET_VINFO ioctl is the one that gets used by the nilfs_cleanerd daemon β so if you were wondering who's calling this, it's them, iykyk π§
π RETURN π
On success? It hands you back the count of nilfs_vinfo structures in the output buffer π On failure? A negative error code π that's the vibe check failing, respectfully.
π¦ SEE ALSO π¦
Kernel file ./fs/nilfs2/ioctl.c, plus the whole 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_get_cpstat(9)nilfs_ioctl_do_get_suinfo(9)nilfs_ioctl_get_sustat(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)
Okay that's the whole page bestie, go read the source if you want more lore π
Sign-off time π«Ά this little masterpiece lives in ./fs/nilfs2, it's dated October 2026, and it's filed under nilfs_ioctl_do_get_vinfo(9). Slay, periodt π
β¨
π¦ 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