RTEMS | cpukit/libio: Support close with IOP references held (!516)

Kinsey Moore (@opticron) gitlab at rtems.org
Sat Jun 21 19:53:54 UTC 2025




Kinsey Moore commented on a discussion on cpukit/include/rtems/libio_.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/516#note_125050

 > +/**
 > + * This routine frees the resources associated with an IOP (file
 > + * descriptor) and clears the slot in the IOP Table. No checks are
 > + * made on the state of the IOP.
 > + */
 > +void rtems_libio_free_iop(
 > +  rtems_libio_t *iop
 > +);
 > +
 > +/**
 > + * This routine frees the resources associated with an IOP (file
 > + * descriptor) and clears the slot in the IOP Table. The IOP has to
 > + * close (open flag not set) and no references held or the call will
 > + * ignore the request.
 > + */
 > +static inline void rtems_libio_free(

I suppose this suggestion may not be possible if this is a public interface.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/516#note_125050
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/20250621/1e8e6529/attachment-0001.htm>


More information about the bugs mailing list