Lines Matching defs:mmap
35 * value returned from ioctl(.., NIOCREG, ...) and the mmap region:
37 * mem = mmap(0, ... );
227 int done_mmap; /* set if mem is the result of mmap */
331 * use that memory instead of mmap.
346 NM_OPEN_NO_MMAP = 0x040000, /* reuse mmap from parent */
362 * nm_mmap() do mmap or inherit from parent if the nr_arg2
450 * we need to wrap ioctl and mmap, at least for the netmap file descriptors
520 * We cannot use the native mmap on windows
530 return mmap(addr, length, prot, flags, fd, offset);
539 #define mmap win32_mmap_emulated
806 * NM_OPEN_NO_MMAP use the memory from arg, only XXX avoid mmap
916 snprintf(errmsg, MAXERRMSG, "mmap failed: %s", strerror(errno));
980 //XXX TODO: check if mmap is already done
984 /* do not mmap, inherit from parent */
985 D("do not mmap, inherit from parent");
991 d->mem = mmap(0, d->memsize, PROT_WRITE | PROT_READ, MAP_SHARED,