On Fri, 2008-01-25 at 04:09 -0700, Andreas Dilger wrote:
The commentary on the mem_notify threads claimed that the signal is
easily provided by setting up the file handle for SIGIO.
Yeah. Here it is...copied from email written by KOSAKI Motohiro:
implement FASYNC capability to /dev/mem_notify.
<usage example>
fd =3D open("/dev/mem_notify", O_RDONLY);
fcntl(fd, F_SETOWN, getpid());
flags =3D fcntl(fd, F_GETFL);
fcntl(fd, F_SETFL, flags|FASYNC); /* when low memory, receive SIGI=
O */
</usage example>
--=20
Zan Lynx <zlynx@acm.org>