DOKK / manpages / debian 12 / libnvme-dev / nvme_mi_admin_get_log_simple.2.en
nvme_mi_admin_get_log_simple(2) libnvme API manual nvme_mi_admin_get_log_simple(2)

nvme_mi_admin_get_log_simple - Helper for Get Log Page functions with no NSID or RAE requirements

int nvme_mi_admin_get_log_simple (nvme_mi_ctrl_t ctrl , enum nvme_cmd_get_log_lid lid , __u32 len , void *log );

Controller to query
Log identifier
length of log buffer
pointer for resulting log data

Performs a Get Log Page Admin command for a specific log ID lid, using NVME_NSID_ALL for the namespace identifier, and rae set to false.

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

nvme_mi_admin_get_log_simple January 2023