fn irqfd(&self, fd: RawFd, gsi: u32, flags: u32) -> Result<()> {
        let irqfd_arg = mshv_irqfd {
            fd: fd as i32,
            flags,
            resamplefd: 0,
            gsi,
        };

        // SAFETY: IOCTL with correct types
        let ret = unsafe { ioctl_with_ref(&self.vm, MSHV_IRQFD(), &irqfd_arg) };
        if ret == 0 {
            Ok(())
        } else {
            Err(errno::Error::last())
        }
    }
/// irqfd: Passes in an eventfd which is to be used for injecting
/// interrupts from userland.
Passes in an eventfd which is to be used for injecting
interrupts from userland.
Passes in an eventfd which is to be used for injecting interrupts from userland .
fn irqfd(&self, fd: RawFd, gsi: u32, flags: u32) -> Result<()> {
        let irqfd_arg = mshv_irqfd {
            fd: fd as i32,
            flags,
            resamplefd: 0,
            gsi,
        };
        // SAFETY: IOCTL with correct types
        let ret = unsafe { ioctl_with_ref(&self.vm, MSHV_IRQFD(), &irqfd_arg) };
        if ret == 0 {
            Ok(())
        } else {
            Err(errno::Error::last())
        }
    }
fn irqfd ( & self , fd : RawFd , gsi : u32 , flags : u32 ) -> Result < ( ) > { let irqfd_arg = mshv_irqfd { fd : fd as i32 , flags , resamplefd : 0 , gsi , } ; // SAFETY: IOCTL with correct types let ret = unsafe { ioctl_with_ref ( & self . vm , MSHV_IRQFD ( ) , & irqfd_arg ) } ; if ret == 0 { Ok ( ( ) ) } else { Err ( errno :: Error :: last ( ) ) } }
irqfd: Passes in an eventfd which is to be used for injecting
interrupts from userland.
irqfd : Passes in an eventfd which is to be used for injecting interrupts from userland .
&self
fd
RawFd
gsi
u32
flags
u32
&self
fd
RawFd
gsi
u32
flags
u32