Hi Gavin,

Gavin Lambert schrieb:
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.

yeah....thought about this as well but the memory is allocated in kernel space and somehow I have to release this junk again. This wouldn't be possible from user space.

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).

Ok. Good to know that this should be possible with uClinux.

Thanks for the answer and best regards,

Markus
_______________________________________________
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