tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Extend "struct malloc_type" for extended KMEMSTATS?
On Wed, Mar 31, 2010 at 08:52:03PM +0000, Christos Zoulas wrote:
> In article <20100331162346.GA11685%britannica.bec.de@localhost>,
> Joerg Sonnenberger <joerg%britannica.bec.de@localhost> wrote:
> >On Wed, Mar 31, 2010 at 06:01:17PM +0200, Alistair Crooks wrote:
> >> let's learn from the POSIX getline(3) fun we had, and use less generic
> >> names than MINBUCKET and MAXBUCKET, please, especially if they're
> >> going in <sys/param.h>?
> >
> >They are already, but why do they have to be exported in headers at all?
> >E.g. I would suggest to define them locally in kern_malloc.c and have
> >corresponding global variables + sysctl for vmstat() and friends.
>
> That is what ifdef _KERNEL is there for...
For stuff that's shared between kernel and grovellers, _KMEMUSER is
the one to use.
Home |
Main Index |
Thread Index |
Old Index