@@ -2711,80 +2711,82 @@ int nvme_resv_report(int fd, __u32 nsid, bool eds, __u32 len,
27112711 * nvme_zns_mgmt_send() -
27122712 * @fd: File descriptor of nvme device
27132713 * @nsid: Namespace ID
2714- * @slba:
2715- * @select_all:
2714+ * @slba: Starting logical block address
2715+ * @zsa: Zone send action
2716+ * @select_all: Select all flag
2717+ * @data_len: Length of @data
2718+ * @data: Userspace address of the data
27162719 * @timeout: timeout in ms
2717- * @zsa:
2718- * @data_len:
2719- * @data:
27202720 * @result: The command completion result from CQE dword0
27212721 *
27222722 * Return: The nvme command status if a response was received (see
27232723 * &enum nvme_status_field) or -1 with errno set otherwise.
27242724 */
2725- int nvme_zns_mgmt_send (int fd , __u32 nsid , __u64 slba , bool select_all ,
2726- __u32 timeout , enum nvme_zns_send_action zsa ,
2727- __u32 data_len , void * data , __u32 * result );
2725+ int nvme_zns_mgmt_send (int fd , __u32 nsid , __u64 slba ,
2726+ enum nvme_zns_send_action zsa , bool select_all ,
2727+ __u32 data_len , void * data ,
2728+ __u32 timeout , __u32 * result );
27282729
27292730
27302731/**
27312732 * nvme_zns_mgmt_recv() -
27322733 * @fd: File descriptor of nvme device
27332734 * @nsid: Namespace ID
2734- * @slba:
2735+ * @slba: Starting logical block address
2736+ * @zra: zone receive action
2737+ * @zrasf: Zone receive action specific field
2738+ * @zras_feat: Zone receive action specific features
2739+ * @data_len: Length of @data
2740+ * @data: Userspace address of the data
27352741 * @timeout: timeout in ms
2736- * @zra:
2737- * @zrasf:
2738- * @zras_feat:
2739- * @data_len:
2740- * @data:
27412742 * @result: The command completion result from CQE dword0
27422743 *
27432744 * Return: The nvme command status if a response was received (see
27442745 * &enum nvme_status_field) or -1 with errno set otherwise.
27452746 */
2746- int nvme_zns_mgmt_recv (int fd , __u32 nsid , __u64 slba , __u32 timeout ,
2747+ int nvme_zns_mgmt_recv (int fd , __u32 nsid , __u64 slba ,
27472748 enum nvme_zns_recv_action zra , __u16 zrasf ,
27482749 bool zras_feat , __u32 data_len , void * data ,
2749- __u32 * result );
2750+ __u32 timeout , __u32 * result );
27502751
27512752/**
27522753 * nvme_zns_report_zones() - Return the list of zones
27532754 * @fd: File descriptor of nvme device
27542755 * @nsid: Namespace ID
27552756 * @slba: Starting LBA
2756- * @timeout: timeout in ms
2757- * @extended: Extended report
27582757 * @opts: Reporting options
2758+ * @extended: Extended report
27592759 * @partial: Partial report requested
27602760 * @data_len: Length of the data buffer
2761- * @data: Data buffer
2761+ * @data: Userspace address of the report zones data
2762+ * @timeout: timeout in ms
27622763 * @result: The command completion result from CQE dword0
27632764 *
27642765 * Return: The nvme command status if a response was received (see
27652766 * &enum nvme_status_field) or -1 with errno set otherwise.
27662767 */
2767- int nvme_zns_report_zones (int fd , __u32 nsid , __u64 slba , __u32 timeout ,
2768- bool extended , enum nvme_zns_report_options opts ,
2769- bool partial , __u32 data_len , void * data ,
2770- __u32 * result );
2768+ int nvme_zns_report_zones (int fd , __u32 nsid , __u64 slba ,
2769+ enum nvme_zns_report_options opts ,
2770+ bool extended , bool partial ,
2771+ __u32 data_len , void * data ,
2772+ __u32 timeout , __u32 * result );
27712773
27722774/**
2773- * nvme_zns_append() -
2775+ * nvme_zns_append() - Append data to a zone
27742776 * @fd: File descriptor of nvme device
27752777 * @nsid: Namespace ID
2776- * @zslba:
2777- * @nlb:
2778+ * @zslba: Zone start logical block address
2779+ * @nlb: Number of logical blocks
27782780 * @control:
2779- * @ilbrt:
2780- * @lbat:
2781- * @lbam:
2782- * @data_len:
2783- * @data:
2784- * @metadata_len:
2785- * @metadata:
2786- * @timeout:
2787- * @result:
2781+ * @ilbrt: Initial logical block reference tag
2782+ * @lbat: Logical block application tag
2783+ * @lbatm: Logical block application tag mask
2784+ * @data_len: Length of @data
2785+ * @data: Userspace address of the data
2786+ * @metadata_len: Length of @metadata
2787+ * @metadata: Userspace address of the metadata
2788+ * @timeout: Timeout in ms
2789+ * @result: The command completion result from CQE dword0
27882790 *
27892791 * Return: The nvme command status if a response was received (see
27902792 * &enum nvme_status_field) or -1 with errno set otherwise.
0 commit comments