Re: /proc/sys/... functionality - bug or feature ?

Brandon S. Allbery KF8NH (allbery@kf8nh.apk.net)
Tue, 11 Aug 1998 19:45:17 -0300


In message <Pine.BSI.3.96.980811184616.19790A-100000@mos220.cs.huji.ac.il>,
Ore
n Laadan writes:
+-----
| The implementation of /proc/sys/... (kernel/sysctl.c) implies that
| consecutive "read()" from files simply won't work.
> ( . . . )
| The question is whether this is a feature, or a bug in the basic design ?
+--->8

Think of them as being special devices with constraints on them. Like
character devices for cartridge tape drives on other *ixes, which can only
read multiples of 512 bytes at multiple-of-512-byte offsets because that's
all the tape drive itself will do. (Not applicable to Linux because Linux
uses block devices and reblocks the I/O in the kernel... which has its own
drawbacks.)

-- 
brandon s. allbery	[os/2][linux][solaris][japh]	 allbery@kf8nh.apk.net
system administrator	     [WAY too many hats]	   allbery@ece.cmu.edu
electrical and computer engineering
carnegie mellon university			   (bsa@kf8nh is still valid.)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html