/* This file is part of the Simba project.  */
int event_init(struct event_t *self_p)
/* This file is part of the Simba project.  */
int event_init(struct event_t *self_p)
{
    ASSERTN(self_p != NULL, EINVAL);
    chan_init(&self_p->base,
              (ssize_t (*)(void *, void *, size_t))event_read,
              (ssize_t (*)(void *, const void *, size_t))event_write,
              (size_t (*)(void *))event_size);
    self_p->mask = 0;
    self_p->reader_mask = 0;
    return (0);
}