man page mlock/munlock

From: Mehdi Aqadjani Memar <hidden>
Date: 2015-05-06 08:49:16

Dear Michael Kerrisk,
in my application I am using munlock() as described in the man page. munlock()
fails and returns ENOMEM. The man page for this error has not helped me to find
out what the problem was. I traced my code and discovered that this error
appears when "the process's maximum number of mappings would have been
exceeded", as it is mentioned at the man page of mmap(). This happens because
munlock() splits the vma's.
I believe that this information should be a part of the man page of munlock().
-- 
Met vriendelijke groet/Kind regards
Mehdi Aqadjani Memar
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help