nilfs_ioctl_clean_segments(9)
π nilfs_ioctl_clean_segments π
okay bestie so we're in the kernel API manual rn, specifically the nilfs_ioctl_clean_segments(9) page β yes the whole thing is named after the function, iconic behavior honestly π
β¨ SYNOPSIS β¨
like, the whole signature, verbatim, no cap:
int nilfs_ioctl_clean_segments (struct inode *inode , struct file *filp
, unsigned int cmd , void __user *argp );
she takes four things and she's gonna tell you about all four, let's go πΈ
π¦ ARGUMENTS π¦
inodeβ the inode object, our main character for this call πfilpβ the file object, tagging along π«Άcmdβ the ioctl's request code, aka which thing we're asking forargpβ a pointer on the argument from userspace, i.e. the userland side's lil package of info dropped off at kernel's door π
π DESCRIPTION π
so nilfs_ioctl_clean_segments literally does a garbage collection operation, and it does it in the environment of the requested parameters that came in from userspace. the NILFS_IOCTL_CLEAN_SEGMENTS ioctl is the one being used here β and it's used by the nilfs_cleanerd daemon. yep, the daemon is the one sliding into this function's DMs ππ
β RETURN β
0β on success, slay β¨- a negative error code β on failure, not slay π
π SEE ALSO π
the reading list, no skipping, periodt:
- Kernel file
./fs/nilfs2/ioctl.c 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_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_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)
and that's the tea, bestie π this page lives at ./fs/nilfs2, dated October 2026, and it's nilfs_ioctl_clean_segments(9) β go forth and collect your garbage, mwah π
π¦ 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