Bug 212153 - mmap: clarify that MAP_POPULATE is best-effort
Summary: mmap: clarify that MAP_POPULATE is best-effort
Status: NEW
Alias: None
Product: Documentation
Classification: Unclassified
Component: man-pages (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: documentation_man-pages@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-09 11:08 UTC by Bruce Merry
Modified: 2021-03-23 07:30 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Bruce Merry 2021-03-09 11:08:13 UTC
The description of MAP_LOCKED in mmap(2) is clear that it is best-effort and will not fail the call if it is unable to do the locking. It appears that MAP_POPULATE is similar (email at https://marc.info/?l=linux-mm&m=161528594100612&w=2), but this is not documented.
Comment 1 Alejandro Colomar 2021-03-19 22:55:30 UTC
Hi Bruce,

Would you mind sending a draft of the text (possibly a patch to <linux-man@vger.kernel.org>) that you think would fit MAP_POPULATE?

Thanks,

Alex
Comment 2 Bruce Merry 2021-03-23 07:30:25 UTC
I can give it a go, although it should definitely be reviewed by someone who is familiar with the internals.

Note You need to log in before you can comment on or make changes to this bug.