Skip to contentSkip to conversation

mmap and domain switch

Xenomai Giuseppe Iellamo 2 participants 2 messages Nov 26, 2013

lore
Share & tools
lore
#0 lore raw

Hi all,

In my project I'm accessing a device using a linux device driver (via sysfs) . In order to speedup the control loop I've mmapped the register i need to read. The question is: If I access a device register using mmap from a xenomai task am i triggering a domain switch ?

BR,
Giuseppe

#1 lore raw
Quoted 3 lines · Giuseppe Iellamo

Hi all,

In my project I'm accessing a device using a linux device driver (via sysfs) . In order to speedup the control loop I've mmapped the register i need to read. The question is: If I access a device register using mmap

assuming you mean "mmaped memory" here,

from a xenomai task am i triggering a domain switch ?

Quoted 1 line

No, unless you take a fault doing so, which should not happen if the MMR is properly mapped/accessed.

Quoted 7 lines

BR,
Giuseppe
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Signature · 1 line
Philippe.