Messages in this thread | | | Date | Tue, 15 Jan 2008 23:16:27 +0100 | From | Pavel Machek <> | Subject | Re: [RFC][PATCH 3/5] add /dev/mem_notify device |
| |
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
| |