mlockall?
I had a program that ran fine under xenomai-2.1.2, but I just upgraded to xenomai-2.2.0 and when I try to run the program, I get:
Xenomai: process memory not locked (missing mlockall?)
I saw this article (http://www.captain.at/xenomai-2.2.php) which says to just add:
mlockall(MCL_CURRENT | MCL_FUTURE);
I tried just putting this in main, but I get compiler errors. Is there a particular file I need to include to resolve this error or am I going about solving this wrong? Thanks.
-Brandt
Quoted 5 lines · Brandt Erickson
I had a program that ran fine under xenomai-2.1.2, but I just upgraded to xenomai-2.2.0 and when I try to run the program, I get:
Xenomai: process memory not locked (missing mlockall?)
Quoted 8 lines
I saw this article (http://www.captain.at/xenomai-2.2.php) which says to just add:
mlockall(MCL_CURRENT | MCL_FUTURE);I tried just putting this in main, but I get compiler errors. Is there a particular file I need to include to resolve this error or am I going about solving this wrong? Thanks.
#include <sys/mman.h>
should do the trick.
Quoted 7 lines
-Brandt
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 1 line
Philippe.
Hello,
"Brandt Erickson" <[email protected]> [2006-08-07]:
Quoted 5 lines
I had a program that ran fine under xenomai-2.1.2, but I just upgraded to xenomai-2.2.0 and when I try to run the program, I get:
Xenomai: process memory not locked (missing mlockall?)
Quoted 8 lines
I saw this article (http://www.captain.at/xenomai-2.2.php) which says to just add:
mlockall(MCL_CURRENT | MCL_FUTURE);I tried just putting this in main, but I get compiler errors. Is there a particular file I need to include to resolve this error or am I going about solving this wrong? Thanks.
man mlockall
Regards,
Bernhard
Signature · 2 lines
Faulheit ist die Angewohnheit, sich auszuruhen, bevor man müde ist. -- (unbekannt)