mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjan@infradead.org>
To: "sej.kernel" <sej.kernel@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: mlock into kernel module
Date: Fri, 12 May 2006 20:44:48 +0200	[thread overview]
Message-ID: <1147459488.3173.42.camel@laptopd505.fenrus.org> (raw)
In-Reply-To: <4464A819.2050706@gmail.com>

On Fri, 2006-05-12 at 17:22 +0200, sej.kernel wrote:
> Hello,
> I need to use mlock and munlock function into a kernel module. How so
> I call this system call from my module ?

no it's a bug if you need to do that

> 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.

that's an rlimit thing, just fix the rlimit on your system.

Also if you want to do this for pinning hardware at a physical address
you have a really wrong design (mlock is the wrong api) which also
includes a security hole btw
 


  parent reply	other threads:[~2006-05-12 18:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2006-05-12 19:08 ` Chris Wright
     [not found] <6bHKI-6a8-9@gated-at.bofh.it>
     [not found] ` <6bLbw-344-3@gated-at.bofh.it>
2006-05-15  8:35   ` sej
2006-05-15 17:26     ` 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=1147459488.3173.42.camel@laptopd505.fenrus.org \
    --to=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sej.kernel@gmail.com \
    /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

all inboxes | Powered by JetHome®