vfs_ioctl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vfs_ioctl(9) β€” Kernel API Manual

okay so bestie, welcome to the vfs_ioctl(9) page πŸ’– this one lives in the Kernel API Manual and honestly? it's a little one-trick pony but it ate. let's get into it.


✨ NAME ✨

vfs_ioctl β€” call filesystem specific ioctl methods πŸŽ€


🌸 SYNOPSIS 🌸

int vfs_ioctl (struct file *filp , unsigned int cmd , unsigned long arg );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • filp β€” the open file you're gonna invoke the ioctl method on, like the main character of this whole operation πŸ‘‘
  • cmd β€” the ioctl command to execute, i.e. which thing you want done ✨
  • arg β€” the command-specific argument for the ioctl, so like, the lil extra detail your command needs 🫢

πŸ’œ DESCRIPTION πŸ’œ

okay so what it does: it invokes the filesystem specific ->unlocked_ioctl, if one exists. that's the whole vibe. 🧚

but if there's no ->unlocked_ioctl? it does not improvise, bestie β€” it just returns -ENOTTY. no method, no service. πŸ’€

Returns 0 on success, -errno on error. that's it, that's the tea β˜•


🌈 SEE ALSO 🌈

go read those next, iykyk πŸ“šβœ¨


and that's the page!! πŸŽ€ tysm for reading, this came from the source ./fs, dated October 2026, and it's your girl vfs_ioctl(9) signing off β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from