Re: [RFC][PATCH 3/5] add /dev/mem_notify device
From: Pavel Machek
Date: Tue Jan 15 2008 - 17:16:39 EST
Hi!
> the core of this patch series.
> add /dev/mem_notify device for notification low memory to user process.
>
> <usage examle>
>
> fd = open("/dev/mem_notify", O_RDONLY);
> if (fd < 0) {
> exit(1);
> }
> pollfds.fd = fd;
> pollfds.events = POLLIN;
> pollfds.revents = 0;
> err = poll(&pollfds, 1, -1); // wake up at low memory
>
> ...
> </usage example>
Nice, this is really needed for openmoko, zaurus, etc....
But this changelog needs to go into Documentation/...
...and /dev/mem_notify is really a bad name. /dev/memory_low?
/dev/oom?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
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/