Captain's Universe Home
Captain's Universe Home
Cosmic Ray Muon DetectorTeleGarden Pages
Time on MarsBryophyllum Plants
Jupiter Radio AstronomyAncient Pages
Salzburg Tourist GuideEarth Magnetometer
  H O M E     AJAX & MORE     LINUX & MORE     RTAI     XENOMAI     ADEOS IPIPE      
    JAVA & BROWSERS     *NIX     ELECTRONICS     REVIEWS     ARTEMIA     FAIRY SHRIMP      


Xenomai 2.2 Notes

If you see this:
Xenomai: process memory not locked (missing mlockall?)

add
#include <sys/mman.h>

mlockall(MCL_CURRENT | MCL_FUTURE);

Other notes (may be applicable since Xenomai 2.1):
  • rt_timer_start() and rt_timer_stop() are deprecated. The timer is started now automatically.
  • real-time tasks always start in primary mode
  • rt_dev_ioctl() is now switching to primary (RT) mode if we're in secondary mode, so we don't need "ret = rt_task_set_mode(0, T_PRIMARY, NULL);" anymore. The only still existing exceptions are (very rare!) services that are provided for both contexts. E.g. in the 16550A driver: RTSER_RTIOC_SET_CONFIG with RTSER_SET_TIMESTAMP_HISTORY set in the config mask must run in non-RT context if the open call did so as well - consistent buffer allocation from the same type of memory pool.
  • rt_task_wait_period(&overrun); : this call requires primary mode anyway and will take care for a switch back
  • // CONFIG_XENO_OPT_NATIVE_INTR=y otherwise it fails with ENOSYS (38)
    err = rt_intr_create(&intr_desc, "parint", PARPORTINT, I_PROPAGATE);



Xenomai 2.1 Notes

 error: too few arguments to function `rt_task_wait_period'
=>
unsigned long overr;
int ret = rt_task_wait_period(&overr);
// check overr for pending overruns



Last-Modified: Tue, 08 Aug 2006 06:17:27 GMT

Google
 
Web www.captain.at
go to top
© 1996-2010 . All rights reserved.
No reproduction, distribution, publishing or transmission of the copyrighted materials at this site is permitted. Policy
go to top