vfs_ioctl(9)
π 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 π
- Kernel file
./fs/ioctl.c fiemap_fill_next_extent(9)fiemap_prep(9)compat_ptr_ioctl(9)
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
- 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