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 2022/08/04 08:06:27 UTC

[GitHub] [incubator-nuttx] luojun1234 commented on pull request #6780: iob_s add io_private filed, user can use it to keep context

luojun1234 commented on PR #6780:
URL: https://github.com/apache/incubator-nuttx/pull/6780#issuecomment-1204910447

   It is optional, some modules may use it to store the pointer of running context.  
   For example,  in the IP reassemble function we are developing, multiple fragments are organized in an IOB chain. When all fragments belonging to one IP frame are received, all fragments need to be sorted according to the IP offset value in each fragment IP header. The offset value can be stored in this memory pointed by this io_private pointer. This way we can avoid querying the offset value from the IP header multiple times.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org