Skip to main content

nvme_ns_write

Function nvme_ns_write 

Source
pub unsafe extern "C" fn nvme_ns_write(
    n: nvme_ns_t,
    buf: *mut c_void,
    offset: off_t,
    count: usize,
) -> c_int
Expand description

nvme_ns_write() - Write to a namespace @n: Namespace instance @buf: Buffer with data to be written @offset: LBA offset of @n @count: Number of sectors in @buf

Return: Number of sectors written or -1 on error