With xenomai-2.4.2 and rtnet-0.9.10, is it expected that the following code:
...
mlockall(MCL_CURRENT|MCL_FUTURE);
rt_task_shadow(&task_self, NULL, 1, T_FPU);
fd = rt_dev_socket(AF_PACKET, SOCK_DGRAM, 0);
if (fd < 0) {
fprintf(stderr, "failed to create socket %d\n", fd);
exit(1);
}
...
fails with the message "failed to create socket -12", while the following works
as expected:
...
mlockall(MCL_CURRENT|MCL_FUTURE);
rt_task_shadow(&task_self, NULL, 1, T_FPU);
rt_task_set_mode(T_PRIMARY, 0, 0);
fd = rt_dev_socket(AF_PACKET, SOCK_DGRAM, 0);
if (fd < 0) {
fprintf(stderr, "failed to create socket %d\n", fd);
exit(1);
}
...
Regards
Anders Blomdell
--
Anders Blomdell Email: [EMAIL PROTECTED]
Department of Automatic Control
Lund University Phone: +46 46 222 4625
P.O. Box 118 Fax: +46 46 138118
SE-221 00 Lund, Sweden
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help