I'd like to write a statement to dmesg. [How] can I do this?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
Write to |
|||
|
|
|
Assuming nobody else comes up with an official way to do this ... You can write a kernel module that calls the |
|||
|
If I understood man dmesg correctly, you should be able to write to /proc/kmsg. |
|||
|
nowis seconds from boot, and I think it takes a kernel call to write to it so a userland program can't. – Kevin Apr 3 '12 at 21:22