CV-Bowen commented on code in PR #7131: URL: https://github.com/apache/incubator-nuttx/pull/7131#discussion_r975316188
########## fs/vfs/fs_poll.c: ########## @@ -276,6 +277,62 @@ static inline int poll_teardown(FAR struct pollfd *fds, nfds_t nfds, * Public Functions ****************************************************************************/ +/**************************************************************************** + * Name: poll_notify_common + * + * Description: + * Notify the poll, this function should be called by drivers to notify + * the caller the poll is ready. + * + * Input Parameters: + * afds - The fds array + * nfds - Number of fds array + * eventset - List of events to check for activity + * + * Returned Value: + * None + * + ****************************************************************************/ + +void poll_notify_common(FAR struct pollfd **afds, int nfds, + pollevent_t eventset, uint32_t option) +{ + int i; + int semcount; + FAR struct pollfd *fds; + + DEBUGASSERT(nfds >= 1); + + for (i = 0; i < nfds; i++) + { + fds = afds[i]; + if (fds == NULL) + { + continue; + } Review Comment: Done -- 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-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org