Re: pinning down user memory...

Stephen C. Tweedie (sct@redhat.com)
Thu, 30 Sep 1999 15:26:26 +0100 (BST)


Hi,

On Thu, 23 Sep 1999 15:44:20 -0700, "Raj, Ashok" <ashok.raj@intel.com>
said:

> anyone in the list has had requirement to pin user memory pages down
> in linux? i have had other ways in solaris/nt to do this. but have not
> known the right way to lock pages down under linux.

What for? From user space, mlock() fits the bill. If you want to pin
pages for a driver, either allocate the pages from kernel space and mmap
them into user space, or (in 2.3) the kiobuf mechanism can map and pin
an arbitrary range of user pages temporarily.

--Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/