You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/02/10 06:11:08 UTC
[GitHub] [incubator-nuttx] xiaoxiang781216 commented on issue #2834: Dynamically extend fd table as needed
xiaoxiang781216 commented on issue #2834:
URL: https://github.com/apache/incubator-nuttx/issues/2834#issuecomment-776470675
We plan to address this issue first: https://github.com/apache/incubator-nuttx/issues/2833, the rough idea is that:
1. Keep the kernel psock API as before
2. Implement a new file_operation g_sock_fileops
3. socket api allocate handle from filelist and associate with g_sock_fileops
4. Common API(e.g. dup, close, ioctl, read, write) is handled by new g_sock_fileops
5. g_sock_fileops forward common API to the related psock API
6. Remove socklist from task_group and NSOCKET_DESCRIPTORS option
so, we get an unified representation of file and socket.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org