[ros-dev] Advice required on User-mode to Kernel mode call for syslog(2) analog in ROS

Sven Barth pascaldragon at googlemail.com
Wed Apr 6 12:54:13 UTC 2011


Am 06.04.2011 02:09, schrieb Minas Abrahamyan:
> Hi all,
>
> I'm going to implement dmesg.exe, a ROS application to read dmesg/kmsg
> buffer (debug messages in kernel buffer),
> which is filled in by appropriate patch 6018
> (here: http://www.reactos.org/bugzilla/show_bug.cgi?id=6018 ) (BTW,
> it's not yet reviewed and not applied!).
>
> So I'm requesting advice on:
> What would be the better way for user-mode code to get the contents of
> kmsg buffer in kernel-space (kdbg)?
>
> Shortly:
> Linux has special system call "syslog" (man 2 syslog)
> FreeBSD uses its special sysctl interface to kernel along with
> 'kern.msgbuf' parameter.
>
> My questions:
> Do we need special system call like Linux, or even more, the whole
> family of them (sysctl('*')) as in BSD?
> How to implement simple system call for it, now?

I'm not one of the ReactOS devs and also I'm not writing much here, but 
what about implementing a (legacy type) device driver that provides a 
device object (e.g. \Device\kmsg) that can be read from (no writing 
though) and some code for DeviceIOControl to clear/config the buffer?

Regards,
Sven



More information about the Ros-dev mailing list