linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* kiobuf interface / PG_locked flag
@ 2002-09-12  8:48 Martin Maletinsky
  2002-09-12 15:24 ` Joseph A. Knapka
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Maletinsky @ 2002-09-12  8:48 UTC (permalink / raw)
  To: linux-mm, kernelnewbies

Hello,

I just read about the kiobuf interface in the Linux Device Driver book from Rubini/Corbet, and there is one point, which I don't understand:
- map_user_kiobuf() forces the pages within a user space address range into physical memory, and increments their usage count, which subsequently prevents the pages from
being swapped out.
- lock_kiovec() sets the PG_locked flag for the pages in the kiobufs of a kiovec. The PG_locked flag prevents the pages from being swapped out, which is however already
ensured by map_user_kiobuf().
(1) What is the reason to call lock_kiovec()?
(2) Are there any additional effects (other than prevent the page from being swapped out) resulting from a set PG_locked flag?
(3) Does anyone know a more detailed documentation of the kiobuf interface, than the book mentioned above?

P.S. please put me on CC in your reply, since I am not in the mailing list.

Thanks for any help,
best regards
Martin Maletinsky

--
Supercomputing System AG          email: maletinsky@scs.ch
Martin Maletinsky                 phone: +41 (0)1 445 16 05
Technoparkstrasse 1               fax:   +41 (0)1 445 16 10
CH-8005 Zurich


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

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

end of thread, other threads:[~2002-09-15 15:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-12  8:48 kiobuf interface / PG_locked flag Martin Maletinsky
2002-09-12 15:24 ` Joseph A. Knapka
2002-09-12 15:33   ` Stephen C. Tweedie
2002-09-13 12:41     ` Jan Hudec
2002-09-13 14:45       ` Stephen C. Tweedie
2002-09-15 15:54         ` Jan Hudec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox