vfio_file_has_dev(9)
β¨ NAME β¨
vfio_file_has_dev β returns true if the VFIO file is a handle for a device π
π¦ SYNOPSIS π¦
bool vfio_file_has_dev (struct file *file , struct vfio_device *device );
πΈ ARGUMENTS πΈ
fileβ the VFIO file you wanna check, bestie πdeviceβ the device that must be part of that file, no exceptions π
π DESCRIPTION π
okay so here's the vibe: this one returns true if the given file actually has permission to manipulate the given device. that's it, that's the whole function. it's giving "do you have the range to touch this device" energy and honestly? iconic β¨
like literally, no cap, it's just a yes-or-no check β true means the file can mess with that device, and that's the entire plot π«Ά
π SEE ALSO π
- Kernel file
./drivers/vfio/group.c vfio_file_iommu_group(9)vfio_file_is_group(9)
like, go read those too, iykyk ππ
fr fr, this page lives in ./drivers/vfio and it's dated October 2026 β glad you came to my ted talk, mwah ππ
that's the whole manpage bestie, slay, 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