Re: Userspace <-> communication

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/10/06, Jinesh K J <jineshkj.newsletters@xxxxxxxxx> wrote:
On 10/11/06, Jesper Juhl <jesper.juhl@xxxxxxxxx> wrote:
> On 11/10/06, Jinesh K J <jineshkj.newsletters@xxxxxxxxx> wrote:
> > Hi all,
> >
> > I just want to know what are the various userspace <-> kernelspace
> > communication mechanisms other than the following:
> >
> >   -  Device files
> >   -  Procfs
> >   -  Sysfs
> >   -  connector
> >   -  mmap()
> >
> system calls
I don't want to add any more system call to the kernel. Or you meant
something else to say?

You asked for ways that userspace and kernelspace can communicate and
syscalls is one such way.

> printk()
I'm looking for mechanisms that a user space application can use. How
can kernel messages be captured by userspace applications?

userspace can read kernel messages through 'dmesg' or in the system
logs written by klogd/syslogd. If you want to know how those apps get
the messages, then get hold of the source for dmesg or klogd.

--
Jesper Juhl <jesper.juhl@xxxxxxxxx>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux