Reputation: 1
Can different entry points in a function be accessed by other drivers?
I know that by using EXPORT_SYMBOL
we can do it for functions and symbols. My confusion is can read
/write
entry points be exported. If I do so will be against good driver practice?
Upvotes: 0
Views: 283
Reputation: 998
You can export any Global function and Variable using EXPORT_SYMBOL() even device file operations read() and write() too. It will be very difficult to call them from any kernel modules because of the parameters required to call them for example file pointer of the device.
Upvotes: 1