Quoth Markus Franke:
> I am wondering whether it would be possible to have a huge FIFO of
> like 16 MBytes allocated in kernel memory and to map this memory
> region to the user space process. I am not really sure if this would
> be possible with uClinux because of the lack of MMU support.

While it's generally considered to be "bad style", in fact *because* of the
lack of MMU support you can usually just pass a raw pointer from kernel to
user space and the user code can just read (or even write) it directly.

Better style though is to set up a proper mmap interface.  There's a
textfile in the kernel Documentation directory explaining how to set up mmap
for !MMU systems (essentially, you need to implement one extra handler in
the driver and be careful which flags you pass in user space).



_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to