DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] DDPK use of MAP_FIXED in mmap
@ 2014-12-08 19:02 Karmarkar Suyash
  2014-12-09  9:55 ` Bruce Richardson
  2014-12-09 15:26 ` Neil Horman
  0 siblings, 2 replies; 6+ messages in thread
From: Karmarkar Suyash @ 2014-12-08 19:02 UTC (permalink / raw)
  To: dev

Hello,

In DPDK when we use mmap why are we passing the MAP_FIXED flag when Linux man page itself says that the option is discouraged? Any specific reason for passing the MAP_FIXED flag?


http://linux.die.net/man/2/mmap

MAP_FIXED
Don't interpret addr as a hint: place the mapping at exactly that address. addr must be a multiple of the page size. If the memory region specified by addr and len overlaps pages of any existing mapping(s), then the overlapped part of the existing mapping(s) will be discarded. If the specified address cannot be used, mmap() will fail. Because requiring a fixed address for a mapping is less portable, the use of this option is discouraged.


Regards
Suyash Karmarkar

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-12-09 18:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-08 19:02 [dpdk-dev] DDPK use of MAP_FIXED in mmap Karmarkar Suyash
2014-12-09  9:55 ` Bruce Richardson
2014-12-09 18:29   ` Xie, Huawei
2014-12-09 15:26 ` Neil Horman
2014-12-09 16:04   ` Bruce Richardson
2014-12-09 18:22     ` Neil Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).