Interrupt handler assistance
Hi!
I'm porting a driver to RTAI, using RTDM. The original driver uses Workqueues to process the data received by the interrupt handler. What method does RTDM in a this situation?
Thanks for your replies
DISCLAIMER: This message may contain confidential information or privileged material and is intended only for the individual(s) named. If you are not a named addressee and mistakenly received this message you should not copy or otherwise disseminate it: please delete this e-mail from your system and notify the sender immediately. E-mail transmissions are not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. Therefore, the sender does not accept liability for any errors or omissions in the contents of this message that arise as a result of e-mail transmissions. Please request a hard copy version if verification is required. Critical Software.
Quoted 6 lines · Marcelo Coelho
Hi!
I'm porting a driver to RTAI, using RTDM. The original driver uses Workqueues to process the data received by the interrupt handler. What method does RTDM in a this situation?
RTDM doesn't provide an explicit queuing API, you may design a specific one for your scenario (or keep the original one if it was not RTAI-specific). What RTDM offers is locking (rtdm_lock_xxx) and signalling (rtdm_event_xxx or rtdm_sem_xxx).
Patterns can be found e.g. in the serial driver (ring buffer with rtdm_event) or in RTnet (packet queue with rtdm_event or rtdm_sem).
Jan