rt_printk in user space

Dusan Saljic saljic at yahoo.com
Fri Nov 30 16:08:52 CET 2007


Hi,

If I'm not wrong rt_printk is for kernel side or rtai.  You could use fifo for the messaging, it suits me good.

rtai_side:

 rtai_put(fifo_no, yourmessagebuff, messagesize);

user_side:

rtai_read_all_at_once(fd, msgbuff, messagesize);

Greetings,
Dusan


----- Original Message ----
From: Andreas Thuy <wicht at mail.uni-paderborn.de>
To: rtai at rtai.org
Sent: Friday, November 30, 2007 2:48:39 PM
Subject: rt_printk in user space


Hello,

I have a simple periodic RTAI task running in user space (made it hard
  
real time). For debugging purposes I would like to send debugging  
information to the screen whenever the task is activated. I tried to  
do this with the rt_printk function. But the output did not come to  
the screen periodically *g* I already reduced the period to 10 seconds
  
to find out if the drift is caused by a busy system. But again, the 10
  
seconds couldn't be held.

Is rt_printk suited for sending debugging messages periodically to the
  
screen (in user space) and do you have any hint on where I could have  
a look at to find some sort of misconfiguration if rt_printk is a good
  
choice?

Cheers,
Andreas


_______________________________________________
RTAI mailing list
RTAI at rtai.org
https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai






      ____________________________________________________________________________________
Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  http://overview.mail.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.rtai.org/pipermail/rtai/attachments/20071130/805f1501/attachment.htm 


More information about the Rtai mailing list