]> git.baikalelectronics.ru Git - kernel.git/commit
add file position info to proc
authorMiklos Szeredi <mszeredi@suse.cz>
Tue, 8 May 2007 07:26:17 +0000 (00:26 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:03 +0000 (11:15 -0700)
commit6c12bcfa60255c0de5deea18816e31957dbe616b
tree8cc0cf9889f3426b9ca50d3cfa15e775ad31d2d8
parent12e0eb8aa8e6c7eded0d81fd7505d13feaa4299d
add file position info to proc

Add support for finding out the current file position, open flags and
possibly other info in the future.

These new entries are added:

  /proc/PID/fdinfo/FD
  /proc/PID/task/TID/fdinfo/FD

For each fd the information is provided in the following format:

pos: 1234
flags: 0100002

[bunk@stusta.de: make struct proc_fdinfo_file_operations static]
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: Alexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c