From: Mehdi Aqadjani Memar <m.aqadjanimemar-oe7qfRrRQfcprfpi5Sxi9A@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man <linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: man page mlock/munlock
Date: Wed, 22 Jul 2015 08:17:04 +0200 [thread overview]
Message-ID: <87twswr9wn.fsf@student.vu.nl> (raw)
In-Reply-To: <CAKgNAkjMuMdu952zj_3kL7cmC-xeRzTzDo_2emxwjEoG+2YVFQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hello Michael,
thank you for your reply!
Your text has explained the effect of locking and unlocking very well.
Regards,
Mehdi
Michael Kerrisk (man-pages) writes:
> Hello Mehdi
>
> On 6 May 2015 at 10:49, Mehdi Aqadjani Memar
> <m.aqadjanimemar-oe7qfRrRQfcprfpi5Sxi9A@public.gmane.org> wrote:
>> 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
>
> Thanks for the report, and sorry for the delayed response. I've
> confirmed your point. How would the following text be:
>
> ENOMEM Locking or unlocking a region would result in the total
> number of mappings with distinct attributes (e.g., locked
> versus unlocked) exceeding the allowed maximum. (For
> example, unlocking a range in the middle of a currently
> locked mapping would result in three mappings: two locked
> mappings at each end and an unlocked mapping in the mid‐
> dle.)
> ?
>
> Thanks,
>
> Michael
--
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
prev parent reply other threads:[~2015-07-22 6:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-06 8:49 man page mlock/munlock Mehdi Aqadjani Memar
[not found] ` <87k2wm84eo.fsf-oe7qfRrRQfcprfpi5Sxi9A@public.gmane.org>
2015-07-21 18:50 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkjMuMdu952zj_3kL7cmC-xeRzTzDo_2emxwjEoG+2YVFQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-22 6:17 ` Mehdi Aqadjani Memar [this message]
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=87twswr9wn.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).