Re: finding the vm_struct of a C pointer

From: Jim Garlick (garlick@llnl.gov)
Date: Fri Feb 18 2000 - 14:41:06 EST


On Fri, 18 Feb 2000, Aydin Okutanoglu wrote:

> before all, thank you for your help.

Happy to help, though beware, I'm not an authority on linux vm.

> - when allocate memory from user space it is possible to force the kernel
> to create a new vm_struct for newly allocated memory

Not if the memory is allocated on the heap (i.e. with brk). Perhaps you
could write a driver with an mmap implementation that does the right thing...

> - and it is possible to set user functions to page fault handlers of user pages

No... Again, you could write a driver with an mmap implementation that
overrides vm_ops->nopage though.

Jim

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



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:22 EST