1nvme_get_log_smart(9) libnvme API manual nvme_get_log_smart(9)
2
3
4
6 nvme_get_log_smart - Retrieve nvme smart log
7
9 int nvme_get_log_smart (int fd , __u32 nsid , bool rae , struct
10 nvme_smart_log *smart_log );
11
13 fd File descriptor of nvme device
14
15 nsid Optional namespace identifier
16
17 rae Retain asynchronous events
18
19 smart_log User address to store the smart log
20
22 This log page provides SMART and general health information. The infor‐
23 mation provided is over the life of the controller and is retained
24 across power cycles. To request the controller log page, the namespace
25 identifier specified is FFFFFFFFh. The controller may also support re‐
26 questing the log page on a per namespace basis, as indicated by bit 0
27 of the LPA field in the Identify Controller data structure.
28
30 The nvme command status if a response was received (see enum nvme_sta‐
31 tus_field) or -1 with errno set otherwise.
32
33
34
35April 2023 nvme_get_log_smart nvme_get_log_smart(9)