pub fn submit_all(&mut self) -> Result<(), UringError> {
        let ret: i32;
        unsafe {
            asm!("syscall",
                in("rax") 426, // SYS_IO_URING_ENTER
                in("rdi") self.ring_fd, // io_uring fd
                in("rsi") self.submit, // to_submit
                in("rdx") 0, // min_complete
                in("r10") 0, // flags
                in("r8") 0, // sigset_t
                out("rcx") _,
                out("r11") _,
                lateout("rax") ret,
            );
        }

        // If it's negative something has gone horrible wrong
        checkerr!(ret.is_negative(), UringError::SubmitToSqResult(ret));

        // It should return the same number as we submitted
        checkerr!(ret as u32 != self.submit, UringError::SubmitToSqResult(ret));

        // Reset amount to submit to zero
        self.submit = 0;

        // Save total amount submitted
        self.submit_total += ret as u64;

        Ok(())
    }
// Submit all queued operations to the kernel
Submit all queued operations to the kernel
Submit all queued operations to the kernel
pub fn submit_all(&mut self) -> Result<(), UringError> {
        let ret: i32;
        unsafe {
            asm!("syscall",
                in("rax") 426, // SYS_IO_URING_ENTER
                in("rdi") self.ring_fd, // io_uring fd
                in("rsi") self.submit, // to_submit
                in("rdx") 0, // min_complete
                in("r10") 0, // flags
                in("r8") 0, // sigset_t
                out("rcx") _,
                out("r11") _,
                lateout("rax") ret,
            );
        }
        // If it's negative something has gone horrible wrong
        checkerr!(ret.is_negative(), UringError::SubmitToSqResult(ret));
        // It should return the same number as we submitted
        checkerr!(ret as u32 != self.submit, UringError::SubmitToSqResult(ret));
        // Reset amount to submit to zero
        self.submit = 0;
        // Save total amount submitted
        self.submit_total += ret as u64;
        Ok(())
    }
pub fn submit_all ( & mut self ) -> Result < ( ) , UringError > { let ret : i32 ; unsafe { asm ! ( " " in ( " " ) 426 // SYS_IO_URING_ENTER in ( " " ) self ring_fd // io_uring fd in ( " " ) self submit // to_submit in ( " " ) 0 // min_complete in ( " " ) 0 // flags in ( " " ) 0 // sigset_t out ( " " ) out ( " " ) lateout ( " " ) ret ) ; } // If it's negative something has gone horrible wrong checkerr ! ( ret is_negative ( ) UringError SubmitToSqResult ( ret ) ) ; // It should return the same number as we submitted checkerr ! ( ret as u32 self submit UringError SubmitToSqResult ( ret ) ) ; // Reset amount to submit to zero self . submit = 0 ; // Save total amount submitted self . submit_total += ret as u64 ; Ok ( ( ) ) }
Submit all queued operations to the kernel
Submit all queued operations to the kernel
&mut self