You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose libfuse low-level poll support through pyfuse3 so
filesystems can implement poll(2), select(2) and epoll readiness
notifications.
Add bindings for struct fuse_pollhandle, fuse_reply_poll(),
fuse_lowlevel_notify_poll() and fuse_pollhandle_destroy(). Introduce a
Python PollHandle wrapper and a notify_poll() helper, allowing a
filesystem to retain the poll handle provided by Operations.poll() and
notify it later when readiness changes.
Wire the low-level FUSE poll callback into Operations.poll(), returning
the current readiness mask to the kernel. The default implementation
continues to raise ENOSYS so existing filesystems keep the previous
fallback behaviour unless they opt in.
This is needed by filesystems that emulate pollable kernel interfaces,
such as sysfs GPIO value files, where edge events must wake userspace
processes waiting for POLLPRI.
Fixes: #139
Signed-off-by: Christopher Obbard <christopher.obbard@linaro.org>
0 commit comments