Re: [PATCH] OOM killer meets userspace headers

From: Christoph Hellwig
Date: Wed Oct 18 2006 - 11:10:15 EST


On Wed, Oct 18, 2006 at 06:53:05PM +0400, Alexey Dobriyan wrote:
> Despite mm.h is not being exported header, it does contain one thing
> which is part of userspace ABI -- value disabling OOM killer. So,
> a) export mm.h to userspace
> b) got OOM_DISABLE disable define out of __KERNEL__ prison.
> c) turn bound values suitable for /proc/$PID/oom_adj into defines and export
> them too.
> d) put some headers into __KERNEL__ prison. It'd bizarre to include mm.h and
> get capability stuff.

NACK, mm.h is far too big for that. Just create a tiny oom.h for those
values.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/