From: david_frank95@yahoo.com (David Frank) Date: Thu, 12 Jul 2018 20:10:36 +0000 (UTC) Subject: mmap huge page and MAP_SYNC flag support In-Reply-To: <31319.1531421911@turing-police.cc.vt.edu> References: <1295689295.3498770.1531421083778.ref@mail.yahoo.com> <1295689295.3498770.1531421083778@mail.yahoo.com> <31319.1531421911@turing-police.cc.vt.edu> Message-ID: <779720497.3567183.1531426236103@mail.yahoo.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Thanks Valdis.Looks like the failure is that I can not write to a 2GB buffer (char bf[2GB size]).Where do I get the distro include file? On Thursday, July 12, 2018, 2:58:49 PM EDT, valdis.kletnieks at vt.edu wrote: On Thu, 12 Jul 2018 18:44:43 -0000, David Frank said: > Hi,How do I enable the MAP_SYNC flag in mmap for linux 4.15, my code does not > compile with that flag on linux 4.15.0-041500rc7-generic #201801072330 Get your distro to ship an update to /usr/include/linux? (kernel-headers) that contains the flag.? Your kernel supports it, but your toolchain doesn't until you get an include file that includes the update for MAP_SYNC > Also, how do I make mmap support map size of 2GB or larger, currently the > call to mmap fails with mapsize of 2GB. What error code does it fail with? _______________________________________________ Kernelnewbies mailing list Kernelnewbies at kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -------------- next part -------------- An HTML attachment was scrubbed... URL: