RTEMS | iospace: Add iospace driver (!1243)

Chris Johns (@chris) gitlab at rtems.org
Tue Jun 16 03:30:51 UTC 2026




Chris Johns commented on a discussion on cpukit/include/dev/io/iodev.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1243#note_152464

 > +   */
 > +  rtems_recursive_mutex mutex;
 > +};
 > +
 > +/**
 > + * @brief Allocate and initialize the iodev device.
 > + *
 > + * After a successful allocation and initialization of the iodev device
 > + * it must be destroyed via rtems_iodev_destroy_and_free().
 > + *
 > + * @param[in] size The number of bytes to allocate.
 > + *
 > + * @retval NULL Failed to set up iodev device.
 > + * @retval non-NULL The new iodev device.
 > + */
 > +rtems_iodev *rtems_iodev_alloc_and_init( size_t size );

I am fine with the naming. It makes it clear the call does an allocation and initialisation.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1243#note_152464
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/20260616/4e12d55f/attachment-0001.htm>


More information about the bugs mailing list