nilfs_ioctl_trim_fs(9)
okay bestie, welcome to the nilfs_ioctl_trim_fs(9) page from the Kernel API Manual β this is your kernel ioctl bestie speaking β¨
π NAME π
nilfs_ioctl_trim_fs β trim ioctl handle function. That's the whole vibe: it's the handler for the <rainbow>FITRIM</rainbow> ioctl, and it's literally giving kernel main character energy π
β¨ SYNOPSIS β¨
int nilfs_ioctl_trim_fs (struct inode *inode , void __user *argp );
πΈ ARGUMENTS πΈ
inodeβ the inode object. literally the inode bestie π«Άargpβ pointer on argument from userspace. the userspace argument pointer walks in and says hi π
π DESCRIPTION π
nilfs_ioctl_trim_fs is the <rainbow>FITRIM</rainbow> ioctl handle function. No cap. It checks the arguments from userspace and calls nilfs_sufile_trim_fs, which performs the actual trim operation.
so yeah β nilfs_ioctl_trim_fs is the one doing the argument check, and nilfs_sufile_trim_fs is the one actually doing the trim operation. periodt π§
π₯ RETURN π₯
0 on success, or a negative error code on failure. if it's 0, slay; if it's negative, the error code is telling you what went wrong π
π SEE ALSO π
- 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_clean_segments(9)nilfs_ioctl_sync(9)nilfs_ioctl_resize(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)
mwah π this page lives in ./fs/nilfs2, is dated October 2026, and is literally the nilfs_ioctl_trim_fs(9) manual β byeee 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