What's wrong with current method of using the memory mapped 'DBWIN_BUFFER'
file for outputting kernel messages?

Two or three different kernel implementations for the same thing seems a bit
retarded and breaks compatibility with existing applications like Dbgview.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Sven Barth
Sent: Wednesday, 6 April 2011 8:54 PM
To: [email protected]
Subject: Re: [ros-dev] Advice required on User-mode to Kernel mode call for
syslog(2) analog in ROS

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

_______________________________________________
Ros-dev mailing list
[email protected]
http://www.reactos.org/mailman/listinfo/ros-dev


_______________________________________________
Ros-dev mailing list
[email protected]
http://www.reactos.org/mailman/listinfo/ros-dev

Reply via email to