Re: [RFC 1/3] /dev/low_mem_notify
From: Pekka Enberg
Date: Thu Jan 19 2012 - 07:00:01 EST
On Thu, Jan 19, 2012 at 1:54 PM, <leonid.moiseichuk@xxxxxxxxx> wrote:
>> The current ABI already supports that. You can specify which attributes
>> you're interested in and they will be delivered as part of th event.
>
> But you have in vmnotify.h suspicious free_pages_threshold field.
Aah, I was actually talking about the events userspace _reads_.
The free_pages_threshold field is only used if
VMEVENT_TYPE_FREE_THRESHOLD bit is set. It should be cleaned up a bit
but it in theory it supports watching other attributes as well. I've
postponed the cleanup until I've figured out whether we can use perf
which would make the whole syscall go away.
Pekka
--
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/