tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: eventfd(2) and timerfd(2) APIs



On Sun, Sep 19, 2021 at 07:43:32AM -0700, Jason Thorpe wrote:
 > >> | else plumbs it through either, but I'll go ahead and do so.
 > >> 
 > >> Please do.   What other things don't permit fcntl() to work?   We
 > >> should fix any of those.
 > > 
 > > Well, I?ll fix these 2 anyway.
 > 
 > ?aaaaand I just double-checked this as well? F_GETFL and F_SETFL
 > don?t need any specific hooks in the implementation; the flags are
 > all handled in common code.

Pretty much all of fcntl does (or should) happen at the fd level;
that's why it's different from ioctl.

In fact, I'd go so far as to say that anything in the fcntl path that
calls into the object is a bug...

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index