Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux设备驱动程序注册错误_Linux_Linux Kernel_Linux Device Driver_Embedded Linux - Fatal编程技术网

Linux设备驱动程序注册错误

Linux设备驱动程序注册错误,linux,linux-kernel,linux-device-driver,embedded-linux,Linux,Linux Kernel,Linux Device Driver,Embedded Linux,我在linux设备驱动程序方面遇到了一些问题 当我尝试使用 extern int platform_driver_probe(struct platform_driver *driver, int (*probe)(struct platform_device *)); 它返回一个错误。我目前正在使用Linux内核3.10,我认为这个驱动程序在3.2中运行良好。我正在为嵌入式系统交叉编译这个内核 这可能看起来很模糊,但我真的没有任何其他我认为有用的信息 有没有人能帮我调试或解决这个错误 编辑:

我在linux设备驱动程序方面遇到了一些问题

当我尝试使用

extern int platform_driver_probe(struct platform_driver *driver, int (*probe)(struct platform_device *));
它返回一个错误。我目前正在使用Linux内核3.10,我认为这个驱动程序在3.2中运行良好。我正在为嵌入式系统交叉编译这个内核

这可能看起来很模糊,但我真的没有任何其他我认为有用的信息

有没有人能帮我调试或解决这个错误

编辑:
错误代码是-19。

因为19是
ENODEV
,我想这就是它失败的地方():


希望这有帮助,

所以您不知道错误是什么?什么错误?在dmesg中有什么有用的东西吗?错误代码是-19,没有,不幸的是在dmesg中没有任何有用的东西。错误-19是ENODEV:
#define ENODEV 19/*没有这样的设备*/
if (code == 0 && list_empty(&drv->driver.p->klist_devices.k_list))
        retval = -ENODEV;