RTEMS | cpukit/libio: Support close with IOP references held (!516)
Chris Johns (@chris)
gitlab at rtems.org
Wed Jun 25 03:47:58 UTC 2025
Chris Johns commented on a discussion on cpukit/include/rtems/libio_.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/516#note_125236
> +int rtems_libio_to_fcntl_flags( unsigned int flags );
> +
> +/**
> + * 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.
It is a wrapper for the `rtems_libio_free()` cal so that defines the interface. The IOP is a static array and any errors would be out of scope for this MR.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/516#note_125236
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/20250625/016f413e/attachment.htm>
More information about the bugs
mailing list