[Home]Mailboxes

Last edit: Peter Favrholdt on September 8, 2006 7:36 (3854 days, 19 hours and 42 minutes ago) (diff)
Rtai.Dk | RecentChanges | Preferences | DIAPM RTAI

Q: How do I use mailboxes in newlxrt if rt_mbx_init() returns a NULL pointer on success. rt_mbx_init() requires a nam2num() label. The rest of the mailbox API functions appear to require a pointer to the mailbox. But damn it, my pointer == NULL.

A: ?


Q: Is it possible to comunicate two rtai task in different modules (.o) by using RTAI Mailboxes? We know that it is possible to do it by using rt_mbx API between two task in the same module. The problem is that we can not obtain the MBX pointer between different modules.

A: Try using the EXPORT_SYMBOL() macro to make the mbx variable in the module you define it public so the other module can "see" it.

http://people.netfilter.org/~rusty/unreliable-guides/kernel-hacking/symbols.html


Edit text of this page | View other revisions | Download Rtai.dk
Search: