I am using syslog to read kernel log messages with SYSLOG_ACTION_READ.
I would like to know if it's possible to "obtain" a file descriptor to "something" that would send the kernel logs (like what syslog provides). Indeed, I would like to use select to watch this file descriptor in my application (since I am already watching other udev-related file descriptors)
Moreover, I would like to know if there is room for configuration (like setting the log level, formatting the timestamp in human-readable form).
If any or all of my requirement are not possible, what kind of approach would you recommend?
/dev/kmsg, at least on Linux.