Re: fcntl() or ioctl() for fs readahead?

Matthias Urlichs (
Sun, 12 May 1996 06:18:02 +0100

In, article <4n16dl$>, (Larry McVoy) writes:
> Linus and I talked about this - we were thinking about adding a=20
> reada(fd, offset, len)=20
> interface which says fetch len bytes into the buffer cache at the off=
> on that fd.
I'd like to be able to do this, but the interface is somewhat limited.

> One limitation of this approach is that the select can only inform yo=
> about one of potentially many reada() requests. We didn't know what =
to do
> about that.
Well, yes, you get the first reada() back. Then you can do your work,
select() again without that fd, and get status for the next reada().

> Thoughts? This is useful to some, kernel bloat to others. I'd like =
> hear if people think it is useful (I know people that do but they don=
> run Linux - yet).

I don't know about you, but I'd rather spend the time for this on the n=
POSIX.4 signals so that you can do true async I/O, including the above
hack, with the help of clone() and your favorite C library.

O God! that men should put an epigram in their mouths to steal away
their brains!
-- William Shakespeare
Matthias Urlichs \ Noris Network GmbH i.Gr/ Xlink-POP N=FCrnberg=
Schleiermacherstra=DFe 12 \ Linux+Internet / EMail: urlichs@nor=
90491 N=FCrnberg (Germany) \ Consulting+Programming+Networking+etc'i=
PGP: 1024/4F578875 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE=
Click <A HREF=3D"">here</A>. =