if (dev->evt_notif_anon_fd() == -1) {
return RSMI_INITIALIZATION_ERROR;
}
And in function rsmi_event_notification_stop(uint32_t dv_ind)
if (dev->evt_notif_anon_fd() == -1) {
return RSMI_STATUS_INVALID_ARGS;
}
Should the returned status also be RSMI_INITIALIZATION_ERROR in rsmi_event_notification_stop?
I'm a little confused when I get RSMI_INITIALIZATION_ERROR because there is only one param (uint32_t dv_ind) in the function.
rocm_smi_lib/src/rocm_smi.cc
In function rsmi_event_notification_mask_set
And in function rsmi_event_notification_stop(uint32_t dv_ind)
Should the returned status also be RSMI_INITIALIZATION_ERROR in
rsmi_event_notification_stop
? I'm a little confused when I get RSMI_INITIALIZATION_ERROR because there is only one param (uint32_t dv_ind) in the function.