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 authored and igaw committed Jan 8, 2025
1 parent 38a804e commit 0a5e083
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/nvme/ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -2273,6 +2273,23 @@ static inline int nvme_get_log_reachability_associations(int fd, bool rao, 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
* @rae: Retain asynchronous events
* @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, bool rae, __u32 len,
struct nvme_ns_list *log)
{
return nvme_get_nsid_log(fd, rae, NVME_LOG_LID_CHANGED_ALLOC_NS_LIST, NVME_NSID_ALL, len,
log);
}

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

0 comments on commit 0a5e083

Please sign in to comment.