> My main goal would be to remove prints from the library in common
 > cases like no IB drivers loaded, no devices present, or no
 > permissions. I have an app where the prints are inconvient.
 > 
 > What I was thinking was to return these cases via errno (ENOSYS,
 > ENODEV, EPERM) in ibv_get_device_list. Do you think that is OK?

Yes, that makes sense I guess.

 > int ibv_get_device_list_ex(struct ibv_device ***devices,int *num_devices, 
 >                            const char **warning_msg);

Are there that many cases where the output is important enough and
likely enough that it's worth a new API to get it out when stderr
doesn't suffice?

 - R.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to