Re: OOPS with slab cache

From: Horst von Brand (vonbrand@pincoya.inf.utfsm.cl)
Date: Tue Jan 11 2000 - 18:56:00 EST


Jamie Lokier <lkd@tantalophile.demon.co.uk> said:
> Horst von Brand wrote:

[...]

> > How large would that be? What about a piece of the module that just stays
> > put in the kernel (no special section loaded, etc)? If you want this for a
> > module, you'll probably want to initialize it at boot anyway.

> Now that /is/ a nice idea. It shouldn't take much memory --
> __persistant would probably be a small section that could be kmalloced.

No, just make it a fixed variable inside the kernel. No kmalloc() or other
overhead at all. If it will stay put regardless, why make it dynamic?

-- 
Dr. Horst H. von Brand                       mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513

- 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.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:19 EST