device and drivers connections

最后都变了- 提交于 2019-12-11 15:05:45

问题


There is a device that is connected to the controller uart port (in Linux 2.6), and which generates an interrupt on gpio. I wrote the driver of the Space user to communicate with the device, but I want to move this driver into the kernel. Does anyone have a similar experience?

There is a driver of uart port from freescale do not really understand how this driver connects to the device through function probe (). Not yet found where the structure of the device is created and at what point and at what time is called probe (). Perhaps the connection occurs during file creation /dev/ttymxc0 ..1 ..2 ..3 (associations on the port) via udev (also not yet know how udev works)?

Another question, if I'll write a driver of the external uart device, then would not it be a conflict when two drivers are connected to the same device? Or the driver who was the first one and managed?

来源:https://stackoverflow.com/questions/29845496/device-and-drivers-connections

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!