Skip to content

Commit

Permalink
ioctl: add nvme_get_log_changed_alloc_ns_list()
Browse files Browse the repository at this point in the history
Since added the NVMe 2.1 log page.

Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t committed Jan 4, 2025
1 parent 3363b02 commit 3858a95
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/nvme/ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -2247,6 +2247,20 @@ static inline int nvme_get_log_reachability_associations(int fd, __u32 len, bool
return nvme_get_log_page(fd, NVME_LOG_PAGE_PDU_SIZE, &args);
}

/**
* nvme_get_log_changed_alloc_ns_list() - Retrieve Changed Allocated Namespace List Log
* @fd: File descriptor of nvme device
* @len: The allocated length of the log page
* @log: User address to store the log page
*
* Return: The nvme command status if a response was received (see
* &enum nvme_status_field) or -1 with errno set otherwise
*/
static inline int nvme_get_log_changed_alloc_ns_list(int fd, __u32 len, struct nvme_ns_list *log)
{
return nvme_get_log_simple(fd, NVME_LOG_LID_CHANGED_ALLOC_NS_LIST, len, log);
}

/**
* nvme_get_log_discovery() - Retrieve Discovery log page
* @fd: File descriptor of nvme device
Expand Down

0 comments on commit 3858a95

Please sign in to comment.