Gedare Bloom started a new discussion on cpukit/include/dev/io/iodev.h: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1243#note_151570

 > + *
 > + * @retval 0 Successful operation.
 > + * @retval non-zero Failed operation.
 > + */
 > +int rtems_iodev_unregister( const char *iodev_path );
 > +
 > +/**
 > + * @brief Destroys the iodev device. Frees the iodev if initialised with
 > + * rtems_iodev_alloc_and_init.
 > + *
 > + * This function must only be used on rtems_iodev instances that have not 
 > been
 > + * successfully registered with rtems_iodev_register.
 > + *
 > + * @param[in] iodev The iodev device.
 > + */
 > +void rtems_iodev_destroy_unregistered( rtems_iodev *iodev );

I would just call this `destroy` and make it an error if it is registered.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1243#note_151570
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

Reply via email to