Skip to main content

nvme_get_attr

Function nvme_get_attr 

Source
pub unsafe extern "C" fn nvme_get_attr(
    d: *const c_char,
    attr: *const c_char,
) -> *mut c_char
Expand description

nvme_get_attr() - Read sysfs attribute @d: sysfs directory @attr: sysfs attribute name

Return: String with the contents of @attr or %NULL in case of an empty value or in case of an error (indicated by non-zero errno code).