RTEMS | Draft: cpukit: add support for common CAN/CAN FD stack (!49)

Pavel Pisa (@ppisa) gitlab at rtems.org
Fri Jun 28 11:23:47 UTC 2024




Pavel Pisa commented on a discussion on cpukit/dev/can/can-bus.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/49#note_108452

 > +      }
 > +    break;
 > +
 > +    case RTEMS_CAN_DISCARD_QUEUES:
 > +      direction = ( int )arg;
 > +      ret = 0;
 > +      if ( ( direction & ( RTEMS_CAN_QUEUE_RX | RTEMS_CAN_QUEUE_TX ) ) == 0 ) {
 > +        ret = -EINVAL;
 > +      } else {
 > +        if ( direction & RTEMS_CAN_QUEUE_RX ) {
 > +          canqueue_ends_kill_outlist ( qends );
 > +        }
 > +
 > +        if ( direction & RTEMS_CAN_QUEUE_TX ) {
 > +          canqueue_ends_kill_inlist( qends, 0 );
 > +        }

Queues for both directions can be discarded in one go.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/49#note_108452
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240628/1232ec8e/attachment-0001.htm>


More information about the bugs mailing list