Home > OS > Ask next device and driver, my Linux laptop with a new device will automatically insmod a device fil
Ask next device and driver, my Linux laptop with a new device will automatically insmod a device fil
Time:09-28
Learning to drive development recently, learned if install a driver on a board, need to load a device. The ko and driver. Ko file, if the name of the device and driver id_table array of members of the match, will perform the probe function, in the new equipment under/dev. I have a doubt, I like to write drivers are manually loading device. Ko file and driver. Ko file, if I suddenly thrust on Linux computer a new equipment, don't give me computer automatically load a device. The ko file and driver. Ko file?
CodePudding user response:
Simple understanding for add a ko or remove an ok sure won't have this kind of action Hotplug devices have their own special driven architecture, Such as USB hot plug, it has its own daemon and for hardware interrupt to logo for interface state, and then according to the specific interface hardware information to match a specific device structure, and then load drive Didn't you say what insmod ko, ko is refers to the kernel loaded dynamically driven a window that is derived from the kernel compilation way and the driver is loaded, have to drive not have absolute influence But for device_register inside of these interfaces call and call or some device_unregister