lkml.org 
[lkml]   [1998]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: /proc/sys/... functionality - bug or feature ?
Date
From
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

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.028 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site