linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mehdi Aqadjani Memar <m.aqadjanimemar-oe7qfRrRQfcprfpi5Sxi9A@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: man page mlock/munlock
Date: Wed, 6 May 2015 10:49:16 +0200	[thread overview]
Message-ID: <87k2wm84eo.fsf@student.vu.nl> (raw)

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

             reply	other threads:[~2015-05-06  8:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-06  8:49 Mehdi Aqadjani Memar [this message]
     [not found] ` <87k2wm84eo.fsf-oe7qfRrRQfcprfpi5Sxi9A@public.gmane.org>
2015-07-21 18:50   ` man page mlock/munlock Michael Kerrisk (man-pages)
     [not found]     ` <CAKgNAkjMuMdu952zj_3kL7cmC-xeRzTzDo_2emxwjEoG+2YVFQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-22  6:17       ` Mehdi Aqadjani Memar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k2wm84eo.fsf@student.vu.nl \
    --to=m.aqadjanimemar-oe7qfrrrqfcprfpi5sxi9a@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).