package
0.0.0-20211014174411-da7a73a45c8e
Repository: https://github.com/go-hypervisor/virtio.git
Documentation: pkg.go.dev
# README
poll
This package forked and edit from go/src/internal/poll@74e384f50d30
# Functions
CopyFileRange copies at most remain bytes of data from src to dst, using the copy_file_range system call.
DupCloseOnExec dups fd and marks it close-on-exec.
IsPollDescriptor reports whether fd is the descriptor being used by the poller.
SendFile wraps the sendfile system call.
Splice transfers at most remain bytes of data from src to dst, using the splice system call to minimize copies of data from and to userspace.
# Variables
Accept4Func is used to hook the accept4 call.
AcceptFunc is used to hook the accept call.
CloseFunc is used to hook the close call.
ErrDeadlineExceeded is returned for an expired deadline.
ErrFileClosing is returned when a file descriptor is used after it has been closed.
ErrNetClosing is returned when a network descriptor is used after it has been closed.
ErrNoDeadline is returned when a request is made to set a deadline on a file type that does not use the poller.
ErrNotPollable is returned when the file or socket is not suitable for event notification.
TestHookDidWritev is a hook for testing writev.
# Structs
DeadlineExceededError is returned for an expired deadline.
FD is a file descriptor.