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
/** * Creates a callback for handling asynchronousely the events associated with * the file descriptor 'fd'. * * @param efd pointer to receive the created evfd result * @param fd the file descriptor to be handled * @param events the events for triggerring callbacks (see epoll_ctl) * @param handler the callback handler * @param closure the closure for the handler * @param autounref boolean, if not null the evfd if automatically unreferenced at close * @param autoclose boolean, if not null fd if automatically closed when unreferenced * * @return 0 in case of success or a negative -errno like value */intafb_evfd_create(
afb_evfd_t*efd,
intfd,
uint32_tevents,
afb_evfd_handler_thandler,
void*closure,
intautounref,
intautoclose
);
Function afb_evfd_addref
/** * Add one reference to the evfd object 'efd' * * @param efd the object to reference * * @return the referenced object */afb_evfd_tafb_evfd_addref(
afb_evfd_tefd
);
Function afb_evfd_unref
/** * Remove one reference to the evfd object 'efd' and * destroys the object if not more referenced * * @param efd the object to unreference */voidafb_evfd_unref(
afb_evfd_tefd
);
Function afb_evfd_get_fd
/** * Retrieve the file descriptor of the evfd object 'efd' * * @param efd the object to query * * @return the file descriptor of the object */intafb_evfd_get_fd(
afb_evfd_tefd
);
Function afb_evfd_get_events
/** * Retrieve the event flags for the evfd object 'efd' * * @param efd the object to query * * @return the event flags of the object */uint32_tafb_evfd_get_events(
afb_evfd_tefd
);
Function afb_evfd_set_events
/** * Set the event flags for the evfd object 'efd' * * @param efd the object to query * @param events the events flags (see epoll_ctl) */voidafb_evfd_set_events(
afb_evfd_tefd,
uint32_tevents
);