Support for logging mailboxes
mantegazza at aero.polimi.it
Tue Nov 5 09:39:25 CET 2002
"grenoldi at libero.it" wrote:
> I have an application in which I use a mailbox as a buffer log for
> messages originated from a kernel task.
> The kernel task now uses a modified printf that, once the message is
> created, puts it in the mailbox calling a rt_mbx_send_wp, to avoid
> being blocked.
> When I want to see the sent messages, I run a user space application
> that gets what there is in the mailbox and prints it out or simply
> display the messages.
> The problem is that once the mailbox is filled out I loose any new
> message I send and what I can display are only the old ones.
> Is it possible to have something like an rt_mbx_send_overwrite
> function that automatically makes space for the new bytes, deleting
> the old ones if the mailbox is filled, like having a forward sliding
> message window?
It is not "rt_mbx_send_overwrite" but "rt_mbx_ovrwr_send" and is already
available in 24.1.10. The same functionality has been added to FIFOs
after releasing 24.1.10, so for FIFOs it is just in the CVS.
More information about the Rtai