Re: proc_generic - cool new stuff

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 6 Nov 1996 20:58:01 +0000 (GMT)


> therefore must be OK to sleep in. It definitely cannot use cli/sti
> to lock it's tables. Anything still relying on cli/sti will need
> to be cached. (And hopefully some of these will be fixed by Keith
> Owens soon.)

You mean like the routing tables. We cannot sleep in the routing handling
end of story. The current code just builds a kernel buffer, unlocks and
feeds that out. That should work fine with your changes

> will keep the proc data consistent (no missing or duplicate data),
> as was the original intent of the caching model.
>
> The included patch should apply cleanly to 2.1.7.
>
> Comments?

Bonus points for being able to select() on a /proc file and wake when
it changes ;)

Alan