probe() error return codes
==========================
-ENODEV This should be reserved for the case where there
really is no device here.
If you do not have a necessary resource or other setup
information this is NOT the error you want to return as
the driver core will not print any error message to the
user. Even if you driver prints a warning, this is still
not the error code to return.
-ENXIO See -ENODEV, this is taken by the driver core to mean
there is "No such device or address (POSIX.1)".
-ENOMEM This is used to signify lack of memory resources, such
as a failure to kmalloc() device state.
-EBUSY A resource you need is not avaialable.
This is returned if you cannot get exclusive access to a
resource such as a request_mem_region() has failed.
-EINVAL An argument to the driver is invalid.
-EIO An input/output error occured. This could be due to
the device responding in an unexpected way or that
the device did not complete a request properly.
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。