nilfs_ioctl_get_bdescs(9)
okay so welcome to nilfs_ioctl_get_bdescs(9), a page in the Kernel API Manual π«Ά β we are literally getting disk block descriptors, no cap.
π NAME π
nilfs_ioctl_get_bdescs β get disk block descriptors π
β¨ SYNOPSIS β¨
int nilfs_ioctl_get_bdescs (struct inode *inode , struct file *filp ,
unsigned int cmd , void __user *argp );
πΈ ARGUMENTS πΈ
inodeβ the inode object, obvs.filpβ the file object.cmdβ the ioctl's request code, iykyk.argpβ a pointer to the argument from userspace.
π¦ DESCRIPTION π¦
okay so the nilfs_ioctl_do_get_bdescs function returns info about descriptors of disk block numbers. The NILFS_IOCTL_GET_BDESCS ioctl is the one used by the nilfs_cleanerd daemon. If it's successful, the disk block descriptors get copied to the userspace pointer argp. slay β¨
π RETURN π
0 on success, or one of these negative error codes on failure:
-EFAULTβ Failure during getting disk block descriptors.-EINVALβ Invalid arguments from userspace.-EIOβ I/O error.-ENOMEMβ Insufficient memory available.
π SEE ALSO π
lowkey go peek at the kernel file ./fs/nilfs2/ioctl.c, bestie, and these other icons:
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_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)
and that's the whole vibe π«Ά this page is from the ./fs/nilfs2 source/version, dated October 2026, and it's nilfs_ioctl_get_bdescs(9) β 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