Re: [RFC 1/3] /dev/low_mem_notify
From: Pekka Enberg
Date: Tue Jan 17 2012 - 04:27:36 EST
On Tue, Jan 17, 2012 at 10:13 AM, Minchan Kim <minchan@xxxxxxxxxx> wrote:
> +static unsigned int low_mem_notify_poll(struct file *file, poll_table *wait)
> +{
> + unsigned int ret = 0;
> +
> + poll_wait(file, &low_mem_wait, wait);
> +
> + if (atomic_read(&nr_low_mem) != 0) {
> + ret = POLLIN;
> + atomic_set(&nr_low_mem, 0);
> + }
> +
> + return ret;
> +}
Doesn't this mean that only one application will receive the notification?
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/