mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* SHM_LOCK question
@ 2002-02-25 21:36 Badari Pulavarty
  2002-02-26 13:46 ` Christoph Rohland
  0 siblings, 1 reply; 2+ messages in thread
From: Badari Pulavarty @ 2002-02-25 21:36 UTC (permalink / raw)
  To: linux-kernel; +Cc: pbadari

Hi,

I am trying to understand how SHM_LOCK works on 2.4.17.
All I can see SHM_LOCKED set in shm_flags. I don't see how 
it is locking the pages (that are already existing or future 
pages). Can somebody explain ?

Any help is appreciated.

Thanks,
Badari

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: SHM_LOCK question
  2002-02-25 21:36 SHM_LOCK question Badari Pulavarty
@ 2002-02-26 13:46 ` Christoph Rohland
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Rohland @ 2002-02-26 13:46 UTC (permalink / raw)
  To: Badari Pulavarty; +Cc: linux-kernel

Hi Badari,

On Mon, 25 Feb 2002, Badari Pulavarty wrote:
> I am trying to understand how SHM_LOCK works on 2.4.17.
> All I can see SHM_LOCKED set in shm_flags. I don't see how 
> it is locking the pages (that are already existing or future 
> pages). Can somebody explain ?

This flag prevents that the pages are written to swap. shmem_writepage
honors it. SHM_LOCK does _not_ force actually swapped out pages into
memory though.

Greetings
		Christoph



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-02-26 13:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-25 21:36 SHM_LOCK question Badari Pulavarty
2002-02-26 13:46 ` Christoph Rohland

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®