[<prev] [next>] [day] [month] [year] [list]
Message-ID: <534D3776.5040907@manux.info>
Date: Tue, 15 Apr 2014 15:43:18 +0200
From: Emmanuel Colbus <ecolbus@...ux.info>
To: linux-kernel@...r.kernel.org
Subject: [RFC][11/11][MANUX] Suggestion : /proc files
Now, a second suggestion : in /proc, besides the pids and the /proc/self
symlink, there are several files that have a length of 0 (according to
stat(2)), but actually have a non-empty content. What about making these
files character-mode device files? I mean, a file whose content is
virtual an whose size is unknown at stat(2)-time, this seems to
correspond more closely to character-mode files that to regular ones.
That's just an idea that came to me, I've not tried it myself, and
perhaps there are compatibility considerations that prevent such a
modification. But even if there is this problem, this doesn't precludes
making any future file in this way. What do you think about it?
Anyways, that was it. Thanks for your attention, and happy hacking!
Emmanuel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists