All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
To: Martin Maletinsky <maletinsky@scs.ch>
Cc: linux-mm@kvack.org
Subject: Re: Memory managment locks
Date: Sat, 15 Sep 2001 22:51:05 -0300	[thread overview]
Message-ID: <20010915225105.A2201@conectiva.com.br> (raw)
In-Reply-To: <3B9CBC3D.7B6509DF@scs.ch>; from maletinsky@scs.ch on Mon, Sep 10, 2001 at 03:12:29PM +0200

Em Mon, Sep 10, 2001 at 03:12:29PM +0200, Martin Maletinsky escreveu:

> I am writing a kernel thread, that should check if a process' page
> (specified by a virtual address and the pointer to a task structure) is
> present in physical memory, and if this is the case pin it in memory
> (i.e. prevent it from being swapped out). I plan to pin the page by
> incrementing it's usage count (i.e. the count field of the corresponding
> page descriptor) - this is the way map_user_kiobuf() pins pages in
> memory. I have some questions about semaphores and spinlocks to be used,
> when accessing a process' mm structure and page tables:
 
have you looked at the linux-mm wiki at http://linux-mm.org/wiki, specially
this part: http://linux-mm.org/wiki/moin.cgi/MemoryLocking ?

hope this helps,

- Arnaldo
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

      reply	other threads:[~2001-09-16  1:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-10 13:12 Memory managment locks Martin Maletinsky
2001-09-16  1:51 ` Arnaldo Carvalho de Melo [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=20010915225105.A2201@conectiva.com.br \
    --to=acme@conectiva.com.br \
    --cc=linux-mm@kvack.org \
    --cc=maletinsky@scs.ch \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.