nilfs_ioctl_get_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« nilfs_ioctl_get_info(9) πŸ’«

okay so bestie, we're in the Kernel API Manual today and this is the page for nilfs_ioctl_get_info β€” yes that name is a mouthful, yes it's iconic, we move.


🌸 NAME 🌸

nilfs_ioctl_get_info β€” the wrapping function of get metadata info. that's it, that's the whole vibe: it's the little handler that goes and gets you metadata info. πŸŽ€


✨ SYNOPSIS ✨

int nilfs_ioctl_get_info (struct inode *inode , struct file *filp ,
       unsigned int cmd , void __user *argp , size_t membsz , ssize_t
       (*dofunc)(struct the_nilfs *, __u64 *, int, void *, size_t, size_t) );

look at that signature. she's long. she's gorgeous. she takes a function pointer. main character energy fr fr. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • inode β€” the inode object. you know her, you love her. 🫢
  • filp β€” the file object. hi bestie.
  • cmd β€” the ioctl's request code. this is the "what do you actually want" part.
  • argp β€” a pointer on the argument from userspace. this is where the good stuff lands. ✨
  • membsz β€” size of an item in bytes. numbers, we love numbers.
  • dofunc β€” the concrete function of getting metadata info. like, the actual worker bee that does the thing. 🐝

🌈 DESCRIPTION 🌈

so nilfs_ioctl_get_info gets metadata info by means of calling the dofunc function. it's a wrapper, it's a delegator, it's giving project manager who actually does the work... no wait, it does the work, dofunc does the work. either way, teamwork makes the dream work. πŸ’–

the requested metadata information is copied to userspace memory argp. so whatever you asked for? it goes right back out to you. slay. πŸŽ€


πŸ”₯ RETURN πŸ”₯

0 on success, or one of the following negative error codes on failure. no in-between, she's very decisive:

  • -EFAULT β€” failure during execution of requested operation. 😭
  • -EINVAL β€” invalid arguments from userspace. bestie. come on. read the args.
  • -EIO β€” I/O error. the disk had a moment. πŸ’€
  • -ENOMEM β€” insufficient memory available. not enough room, the vibe check failed.

πŸ‘‘ SEE ALSO πŸ‘‘

start with the kernel file ./fs/nilfs2/ioctl.c β€” that's the actual hometown of all of these:

okay that's the whole friend group, go say hi to all of them. iykyk. 🌟


and that's the page, bestie!! this one lives in ./fs/nilfs2, dated October 2026 β€” yes, the future, we're ahead of the timeline, periodt. πŸ’œπŸ¦‹βœ¨

πŸ“¦ where this page comes from