console: add /proc/consoles
authorJiri Slaby <jslaby@suse.cz>
Thu, 4 Nov 2010 15:20:24 +0000 (16:20 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Nov 2010 20:50:17 +0000 (12:50 -0800)
commit23308ba54dcdb54481163bfb07dd8aeca76a7a2e
tree3c96c14ee801188978dd2e2c3c84f9ed7535660e
parent281e66057757ddf32ffe679a08f9634fa9f70a7a
console: add /proc/consoles

It allows users to see what consoles are currently known to the system
and with what flags.

It is based on Werner's patch, the part about traversing fds was
removed, the code was moved to kernel/printk.c, where consoles are
handled and it makes more sense to me.

Signed-off-by: Jiri Slaby <jslaby@suse.cz> [cleanups]
Signed-off-by: "Dr. Werner Fink" <werner@suse.de>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/filesystems/proc.txt
fs/proc/Makefile
fs/proc/proc_console.c [new file with mode: 0644]