memory mapping and copying from userspace to kernelspace
memory mapping and copying from userspace to kernelspace
- Subject: memory mapping and copying from userspace to kernelspace
- From: NAHieu <email@hidden>
- Date: Tue, 8 Aug 2006 15:56:44 +0900
Hello,
I am new to kernel programming in Mac Tiger, and have a question:
According to chapter 15 of "Kerrnel programming guide", part "Memory
mapping and block copying", it says: "... To get data from kernel
(to application), application allocates a range of memory and passes
the memory address to kernel. Then kernel can copy data to the memory
(with copyout function)... "
But the documentation doesnt mention few things:
- How to notify kernel the address of the shared memory?
- How should kernel and application notify each other when the copy
process is done, and the data is ready?
Please anybody points me to a sample code of this process? (it should
be used in a lot of code in Mac?)
All the helps are highly appreciated.
Thank you,
H
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden