Skip to content

Commit 0a5e083

Browse files
ikegami-tigaw
authored andcommitted
ioctl: add nvme_get_log_changed_alloc_ns_list()
Since added the NVMe 2.1 log page. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent 38a804e commit 0a5e083

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/nvme/ioctl.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2273,6 +2273,23 @@ static inline int nvme_get_log_reachability_associations(int fd, bool rao, bool
22732273
return nvme_get_log_page(fd, NVME_LOG_PAGE_PDU_SIZE, &args);
22742274
}
22752275

2276+
/**
2277+
* nvme_get_log_changed_alloc_ns_list() - Retrieve Changed Allocated Namespace List Log
2278+
* @fd: File descriptor of nvme device
2279+
* @rae: Retain asynchronous events
2280+
* @len: The allocated length of the log page
2281+
* @log: User address to store the log page
2282+
*
2283+
* Return: The nvme command status if a response was received (see
2284+
* &enum nvme_status_field) or -1 with errno set otherwise
2285+
*/
2286+
static inline int nvme_get_log_changed_alloc_ns_list(int fd, bool rae, __u32 len,
2287+
struct nvme_ns_list *log)
2288+
{
2289+
return nvme_get_nsid_log(fd, rae, NVME_LOG_LID_CHANGED_ALLOC_NS_LIST, NVME_NSID_ALL, len,
2290+
log);
2291+
}
2292+
22762293
/**
22772294
* nvme_get_log_discovery() - Retrieve Discovery log page
22782295
* @fd: File descriptor of nvme device

0 commit comments

Comments
 (0)