Re: Current Status

Albert Cahalan (albert@ccs.neu.edu)
Thu, 21 Mar 1996 16:09:15 -0500 (EST)


> From: alan@lxorguk.ukuu.org.uk (Alan Cox)
>
> Problems Remaining To Look Hard Into As Of 1.3.76:
>
> o Lack of vm area locking means the following destroys your machine
> and filesystems even as a normal user

Normal setups or just SMP?

> two processes one repeatedly allocating a 4Mb file mmap()ing it
> writing it to disk in a tight loop. One continually opening and
> ftruncate()ing the mmap file as the write is being done.

Huh? Like this?
1: mmap(), write 4MB
2: open(), ftruncate() - and close() or not?

> o Make all the inline's __inline__

No, "inline" is easy to read and takes less horizontal space.
The compiler must support this keyword, and many do.
The kernel is not, was not, and will never be ANSI C.
ANSI C does not include assembly or macro parameters either.
It is best to make the code readable, and 4 '_'s is ugly.