And even if you could resize memory, kcore could update it's size. The
reason kcore shows its size is that the size is known. And it's also
relevant! For most of the text files in /proc, you'd have to actually call
the 'read' function to determine the size each time a readdir was done.
Sounds like a very wasteful pursuit to me.
I think that any /proc file whose size can be determined without generating
its contents, might as well report it. But generating contents to determine
size seems silly. And that's the only way you'll do it.
-- [======================================================================] [ Kevin Lentin Email: K.Lentin@cs.monash.edu.au ] [ finger kevinl@fangorn.cs.monash.edu.au for PGP public key block. ] [ KeyId: 06808EED FingerPrint: 6024308DE1F84314 811B511DBA6FD596 ] [======================================================================]- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu