All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC][11/11][MANUX] Suggestion : /proc files
@ 2014-04-15 13:43 Emmanuel Colbus
  0 siblings, 0 replies; only message in thread
From: Emmanuel Colbus @ 2014-04-15 13:43 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-04-15 14:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-15 13:43 [RFC][11/11][MANUX] Suggestion : /proc files Emmanuel Colbus

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.