Skip to main content

nvme_set_features_lba_range

Function nvme_set_features_lba_range 

Source
pub unsafe extern "C" fn nvme_set_features_lba_range(
    fd: c_int,
    nsid: __u32,
    nr_ranges: __u8,
    save: bool,
    data: *mut nvme_lba_range_type,
    result: *mut __u32,
) -> c_int
Expand description

nvme_set_features_lba_range() - Set LBA range feature @fd: File descriptor of nvme device @nsid: Namespace ID @nr_ranges: Number of ranges in @data @save: Save value across power states @data: User address of feature data @result: The command completion result from CQE dword0

Return: The nvme command status if a response was received (see &enum nvme_status_field) or -1 with errno set otherwise.