Hi,

I have come up with a kernel module doing monitoring of system calls
and will printk messages. Now I want to show these messages to user
through an application.

I can write an application to read from file but not from "/proc/kmsg"
where the printk messages are stored.

So I think either there is a way to show "/proc/kmsg' or have to write
the printk messages to a file then read from it.

Regards,
Perumal



On Mar 24, 11:29 am, Greg KH <[email protected]> wrote:
> On Tue, Mar 23, 2010 at 8:21 PM, perumal316 <[email protected]> wrote:
> > Hi All,
>
> > I want to show the kernel messages to user through an application.
>
> Why would you want to do that?  What are you trying
> to achieve here?
>
> > In Android the kernel messages are stored in "/proc/kmsg" but when I
> > tried to display that nothing is coming out. I think it is because
> > "proc/kmsg" is not a file as I can display files stored in "/data".
>
> Look at how the syslog program works and use that same interface.
>
> > I have also found I could not write to file from kernel. So how to I
> > get the kernel messages available in the userspace so that it can be
> > displayed?
>
> You almost never want to do that.
>
> What specific problem are you trying to solve here?
>
> thanks,
>
> greg k-h

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

To unsubscribe from this group, send email to 
android-kernel+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to