On Mon, 7 Aug 2000, Niall Khader wrote:
> I'm trying to use mbuff to map out a memory location for an RTLinux
> module.The shared memory is to allow for information to be excanged between
> the RTLinux module and the Linux application. My problem is, how do i tell
> the Linux module where the memory locations begin???
The big question is:
Do you need to allocate memory before you share it?
If yes, use mbuff and the virtual address is returned by mbuff_alloc. You
need to use it both in RTLinux module and in the Linux application. The
virtual addresses you will get will be different, but they will point to the
same memory area.
But if you already have some kernel memory you want to share, then just mmmap
/dev/mem in the user application (see older shared-memory-howto).
Best regards,
--
Tomek
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/