nilfs_ioctl_get_bdescs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


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