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.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
