Le vendredi 15 septembre 2006 à 18:40 +0200, Jan Kiszka a écrit :
> In case no one comes up with an easy, portable way to detect remapped
> memory as well: What about some flags the caller of rtdm_mmap_to_user
> has to pass, telling what kind of memory it is? Would simplify the RTDM
> part, and the user normally knows quite well where the memory came from.
> And I love to break APIs. :)
This would be perfect. We could even reuse the prot field for that
(PROT_READ | PROT_WRITE | PROT_VMALLOC | PROT_IOREMAP). Not the cleanest
solution, but it won't break the API this way.
Or maybe we should lower the API level a little bit, and let the user
specify the physical address of the mapping instead of the virtual
Stelian Pop <[EMAIL PROTECTED]>
Xenomai-core mailing list