Re: Sharing memory between kernel and user space

From: Christopher Friesen
Date: Tue May 30 2006 - 19:20:40 EST


Brian D. McGrew wrote:
I'm using the 2.6.16.16 kernel. Is there any chance that I could
trouble you for a snippet of code to do that? I've tried every
combination I can think of.

You could try looking at how /dev/kmem does it.

Also, be aware that the size of "unsigned long" can vary between the kernel and userspace if you have a 64-bit machine.

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