Method: FFI::Libfuse::FuseOperations#poll

Defined in:
lib/ffi/libfuse/fuse_operations.rb

#poll(path, fuse_file_info, ph, reventsp) ⇒ Integer

This method is abstract.

Poll for IO readiness events

Parameters:

  • path (String)
  • fuse_file_info (FuseFileInfo)
  • ph (FusePollHandle|nil)

    If ph is set, the client should notify when IO readiness events occur by calling FFI::Libfuse::FusePollHandle#notify_poll (possibly asynchronously)

    Regardless of the number of times poll is received, single notification is enough to clear all. Notifying more times incurs overhead but doesnt harm correctness.

  • reventsp (FFI::Pointer)

    return events

Returns:

  • (Integer)

    0 for success, -ve for error

See Also:

  • poll(2)


# File 'lib/ffi/libfuse/fuse_operations.rb', line 757