Displaying 1 result from an estimated 1 matches for "mmfd".
Did you mean:
mfd
2002 Jun 26
2
MAP_ANON replacement?
...t to passing mmap() an
open file descriptor on /dev/zero with MAP_ANON elided from
the flags argument.
Thus, I suppose in monitor_mm.c (of 3.3p1), the lines 88-89
address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED,
-1, 0);
could be replaced by
{
static int mmfd = -1;
if(mmfd < 0)
mmfd = open("/dev/zero", O_RDWR);
address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_SHARED,
mmfd, 0);
}
Sorry, I have *not* tested it since I am running 3.1p1 and waiting for 3.4p1
announced for next week!
Hans Werner Strube strube at phy...