On Tue, Jan 17, 2012 at 10:13 AM, Minchan Kim [off-list ref] 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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>