Skip to main content

nvme_get_path_attr

Function nvme_get_path_attr 

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

nvme_get_path_attr() - Read path sysfs attribute @p: nvme_path_t object @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).