RTEMS5 and file descriptors
Joel Sherrill
joel at rtems.org
Mon Oct 17 18:39:43 UTC 2022
On Mon, Oct 17, 2022, 12:23 PM Miroslaw Dach <miroslaw.dach at gmail.com>
wrote:
> Hello,
>
> I have followed the instruction to change the limit of File Descriptors
> higher than 64:
>
> https://docs.rtems.org/branches/master/user/migration/v4_11-to-v5.html
> chapter 13.1.3. File Descriptors
>
> Is it required to rebuild the RTEMS5 kernel with the
> macro FD_SETSIZE set to the higher value then 64 or is it enough to
> set it along with CONFIGURE_MAXIMUM_FILE_DESCRIPTORS when the application
> is built?
>
If you go above 64 for configured file descriptors, FD_SETSIZE used by
select() does not automatically change. That is set in the C Library
headers which are considered constant when RTEMS is built.
AFAIK you'd have to patch the header in the C Library when building the
tools using the RSB to have a possible clean solution. Editing the
installed header would be uncool.
How many descriptors do you need? And will you be using select()?
--joel
> Best Regards
> Mirek
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20221017/565fbdd7/attachment.htm>
More information about the users
mailing list