Jan Kiszka wrote:
[EMAIL PROTECTED] wrote:
Just to be sure :
Does the access of a mmaped address (real_mmamp of a device file e.g.
/dev/dualportmemory) force Xenomai to switch to secondary mode ?
I would say yes, as the access of the address probably results into a
read/write of the device file.
Am I right ?
Depends. If that mapping takes place directly on a physical memory
region *ahead-of-use*, then you are safe (like with rtdm_iomap_to_user
from 2.3-devel). But if there is some Linux driver logic in between that
is triggered via page faults on access to those memory blocks, this is
certainly indeterministic. Probably easy to find out by analysing the
Linux driver in question /wrt its mapping code.
But it should be save to call the driver's mmap function in secondary
mode (init code) and use the virtual address later on in primary mode.
Wolfgang.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help