package
0.0.0-20220214151720-7585b01ddccf
Repository: https://github.com/inetaf/netstack.git
Documentation: pkg.go.dev

# Functions

EventMaskFromLinux returns an EventMask representing the supported events from the Linux events e, which is in the format used by poll(2).
NewChannelEntry initializes a new Entry that does a non-blocking write to a struct{} channel when the callback is called.
NewFunctionEntry initializes a new Entry that calls the given function.

# Constants

POLLERR.
POLLHUP.
POLLIN.
POLLOUT.
POLLPRI.
POLLRDNORM.
POLLWRNORM.
Events that waiters can wait on.
Events that waiters can wait on.

# Structs

AlwaysReady implements the Waitable interface but is always ready.
Entry
Entry represents a waiter that can be add to the a wait queue.
Queue represents the wait queue where waiters can be added and notifiers can notify them when events happen.

# Interfaces

EventListener provides a notify callback.
Waitable contains the methods that need to be implemented by waitable objects.

# Type aliases

EventMask represents io events as used in the poll() syscall.