Re: [patch] add file position info to proc

From: Pavel Machek
Date: Tue Mar 27 2007 - 17:26:39 EST


Hi!

> From: Miklos Szeredi <mszeredi@xxxxxxx>
>
> This patch adds 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

Octal? Maybe we should use more traditional hex here? Or even list
flags by name?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/