Skip to main content

nvme_get_ctrl_attr

Function nvme_get_ctrl_attr 

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

nvme_get_ctrl_attr() - Read controller sysfs attribute @c: Controller instance @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).