From: sej <sej@sej.fr>
To: Chris Wright <chrisw@sous-sol.org>, linux-kernel@vger.kernel.org
Subject: Re: mlock into kernel module
Date: Mon, 15 May 2006 10:35:45 +0200 [thread overview]
Message-ID: <44683D61.7000405@sej.fr> (raw)
In-Reply-To: <6bLbw-344-3@gated-at.bofh.it>
Chris Wright a écrit :
> * sej.kernel (sej.kernel@gmail.com) wrote:
>> I need to use mlock and munlock function into a kernel module. How so
>> I call this system call from my module ?
>
> You shouldn't.
>
>> I need to do this because I must use mlock in my software, but I can't
>> use root or suser to start it. So mlock alwaays fail.
>
> You should be using rlimits for this.
>
> thanks,
> -chris
So how to set rlimits ?
My program is in user mode and has to allocate about 128MB to 512MB of
non swappable memory. Maybe I can change the rlimits rights into my
kernel module ?
Do you know how to do this and where to find informations ?
Regards,
sej
next parent reply other threads:[~2006-05-15 8:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <6bHKI-6a8-9@gated-at.bofh.it>
[not found] ` <6bLbw-344-3@gated-at.bofh.it>
2006-05-15 8:35 ` sej [this message]
2006-05-15 17:26 ` mlock into kernel module Chris Wright
2006-05-12 15:22 sej.kernel
2006-05-12 15:52 ` linux-os (Dick Johnson)
2006-05-12 18:44 ` Arjan van de Ven
2006-05-12 19:08 ` Chris Wright
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=44683D61.7000405@sej.fr \
--to=sej@sej.fr \
--cc=chrisw@sous-sol.org \
--cc=linux-kernel@vger.kernel.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