RTEMS | iospace: Add iospace driver (!1243)

Aaron Nyholm (@eagleirony) gitlab at rtems.org
Tue Jun 2 03:33:12 UTC 2026




Aaron Nyholm commented on a discussion on cpukit/include/dev/iospace/iospace.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1243#note_151527

 > +
 > +/**
 > + * @brief Unregister the iospace device.
 > + *
 > + * @param[in] iospace The iospace device.
 > + *
 > + * @retval 0 Successful operation.
 > + * @retval non-zero Failed operation.
 > + */
 > +int rtems_iospace_unregister( const char *iospace_path );
 > +
 > +/**
 > + * @brief Destroys the iospace device.
 > + *
 > + * This function must only be used on rtems_iospace instances that have not
 > + * been registered.

I've revisited this and moved `rtems_iodev_destroy` and `rtems_iodev_free_and_destroy` to a single call, `rtems_iodev_destroy_unregistered`. Additionally, a failed register does not destroy the `iodev`. This makes the API much clearer as the implied symmetricality of the API is removed.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1243#note_151527
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/20260602/5a0840d3/attachment-0001.htm>


More information about the bugs mailing list