]> git.baikalelectronics.ru Git - kernel.git/commit
proc: implement proc_single_file_operations
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 8 Feb 2008 12:18:30 +0000 (04:18 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:23 +0000 (09:22 -0800)
commit631ab559d1ac7c362b59e3bcf55b23e32d2e732b
treef60781ec8485fa7c1a5324a9767ec762e38b7447
parentfc8069bbaae3d3b258b8f17d4dbe3dcac58a8d4a
proc: implement proc_single_file_operations

Currently many /proc/pid files use a crufty precursor to the current seq_file
api, and they don't have direct access to the pid_namespace or the pid of for
which they are displaying data.

So implement proc_single_file_operations to make the seq_file routines easy to
use, and to give access to the full state of the pid of we are displaying data
for.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c
include/linux/proc_fs.h