Brian W. Barrett wrote:
> With MX, it's one initialization call (mx_init), and it's not clear from
> the errors it can return that you can differentiate between the two cases.
If you run mx_init() on a machine without the MX driver loaded or no NIC
detected by the driver, you get a specific error code (MX_NO_DEV) and
the default error handler print something like:
MX:asterix:mx_init:querying driver:error 5(errno=2):No MX device entry
in /dev.
You can overload the default error handler to not see the message.
Patrick
|