Skip to main content

fd_identity

Function fd_identity 

Source
pub fn fd_identity(fd: BorrowedFd<'_>) -> Result<(u64, u64)>
Expand description

Returns the (st_dev, st_ino) identity of a file descriptor.

Used to key device BAR areas by their intrinsic identity (the VFIO cdev inode plus a BAR-region file offset) rather than by a guest-controlled address.