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 2023/01/06 14:32:42 UTC

[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #8052: drivers/pipe:add PIPEIOC_POLLTHRES to set POLLIN threshold

xiaoxiang781216 commented on code in PR #8052:
URL: https://github.com/apache/nuttx/pull/8052#discussion_r1063481601


##########
drivers/pipes/pipe_common.h:
##########
@@ -120,6 +120,7 @@ struct pipe_dev_s
   pipe_ndx_t d_wrndx;       /* Index in d_buffer to save next byte written */
   pipe_ndx_t d_rdndx;       /* Index in d_buffer to return the next byte read */
   pipe_ndx_t d_bufsize;     /* allocated size of d_buffer in bytes */
+  pipe_ndx_t d_pollthres;   /* Buffer threshold for POLLIN to occur */

Review Comment:
   should we support POLLOUT direction too



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