I’m developing a Linux driver loadable module and I have to use another device in my driver.(kind of driver stacked on another driver)
How do I call/use another driver in my driver? I think they are both in the kernel so there might be a way that can use another driver directly.
You will need the
EXPORT_SYMBOL(orEXPORT_SYMBOL_GPL) macro. For example:This should be plain sailing, but you must of course be careful with the namespace – stomping on somebody else’s kernel module symbols would be unfortunate.