打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
probe return error

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. 
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
linux driver 注册设备 platform_driver_register()
Linux设备模型(8)_platform设备
驱动注册platform_driver(一)
struct resource,struct platform_device和驱动的关系?
【转】Linux那些事儿之我是Sysfs(5)举例二sculld - wilson的日志 ...
Linux Device和Driver注册过程,以及Probe的时机
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服