anchao commented on PR #12802:
URL: https://github.com/apache/nuttx/pull/12802#issuecomment-2259528874

   > I'm on the fence a bit here. Despite most of other RTOSes have event 
groups I think Linux always was going in paradigm of using file descriptors + 
select to implement "wait for multiple events" and that it why timerfd, 
signalfd and other file descriptor extensions exist. I do not think that POSIX 
has a good solution for that. @patacongo I would appreciate your vision/comment 
here.
   
   @pkarashchenko  I understand your concern, as you mentioned, most RTOSes 
provide support for event groups, for performance and resource consumption 
considerations, some NuttX kernel developers look forward to using a lighter 
event group instead of select/poll/epoll to avoid binding the file system. 
   nxevent is a kernel function and only be used in kernel space, such as 
drivers or subsystems. It does not guarantee POSIX compatibility, but some 
POSIX APIs could be implemented with nxevent to reduce code duplication.
   
   > @anchao is this intended to be a kernel variant for eventfd?
   
   Yes, thanks for reminding, maybe some kernel components triggered by event 
base could be reuse event group capabilities.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to