]> git.neil.brown.name Git - history.git/commit
[PATCH] printk from userspace
authorAndrew Morton <akpm@zip.com.au>
Tue, 13 Aug 2002 13:12:54 +0000 (06:12 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 13 Aug 2002 13:12:54 +0000 (06:12 -0700)
commite1b19d6e06a98874018c66990465dcc69b69c4bf
treefdb720f60bd52b37044cbf8ece10479e19e3e3af
parentd004bef7de4e2f344a341d7826b8955f7b1d6026
[PATCH] printk from userspace

The patch allows userspace to issue printk's, via sys_syslog().

The main use of this is within hpa's klibc - initial userspace needs a
way of logging information and this API allows that information to be
captured into the printk ringbuffer.  It ends up in /var/log/messages.

Messages are truncated at 1024 characters by printk's vsprintf().

Requires CAP_SYS_ADMIN.
kernel/printk.c