newly add MAP_SYNC flag to mmap

valdis.kletnieks at vt.edu valdis.kletnieks at vt.edu
Mon Jul 16 22:04:30 EDT 2018


On Tue, 17 Jul 2018 00:57:31 -0000, David Frank said:

> I installed LTS 18.04 with headers.  I'm trying to use the new flag MAP_SYNC
> with mmap call, but it complained MAP_SYNC undefined.What #define do I need to
> enable this?

You need more than a #define. You need a 4.15 kernel and matching
kernel-headers. But if you installed 18.04 correctly, those should be in place
already, as that apparently shipped with 4.15...

Or if you're not really a kernel person, but a misplaced userspace person,
'man 2 mmap' tells us:

NAME
       mmap, munmap - map or unmap files or devices into memory

SYNOPSIS
       #include <sys/mman.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 486 bytes
Desc: not available
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180716/98a32b85/attachment.sig>


More information about the Kernelnewbies mailing list