Reputation: 11
We can use printk to send debug message in kernel driver. I have a user mode AP that call kernel driver. I would like to output user mode AP debug message with kernel mode driver at the same time. How to do that?
Upvotes: 1
Views: 1251
Reputation: 2138
You might want to check out syslog()
. Generally though, you can probably do what you want without playing in the system log by using the normal print function for whatever language you're using in userspace, and manually looking at the two different outputs.
Upvotes: 0
Reputation: 39638
If I understood your question correctly, I guess you are looking for syslog C API. $ man 3 syslog
tells you everything you need.
Upvotes: 1