Skip to main content

Module eventfd

Module eventfd 

Source
Expand description

Linux eventfd implementation.

Re-exportsΒ§

use std::cell::Cell; πŸ”’
use std::cell::RefCell; πŸ”’
use std::io; πŸ”’
use std::io::ErrorKind; πŸ”’
use crate::concurrency::VClock; πŸ”’
use crate::shims::files::FileDescription; πŸ”’
use crate::shims::files::FileDescriptionRef; πŸ”’
use crate::shims::unix::UnixFileDescription; πŸ”’
use crate::*; πŸ”’

StructsΒ§

EventFd πŸ”’
A kind of file descriptor created by eventfd. The Event type isn’t currently written to by eventfd. The interface is meant to keep track of objects associated with a file descriptor. For more information see the man page below:

ConstantsΒ§

MAX_COUNTER πŸ”’
Maximum value that the eventfd counter can hold.

TraitsΒ§

EvalContextExt

FunctionsΒ§

eventfd_read πŸ”’
Block thread if the current counter is 0, else just return the current counter value to the caller and set the counter to 0.
eventfd_write πŸ”’
Block thread if the value addition will exceed u64::MAX -1, else just add the user-supplied value to current counter.