event_reg
static const struct event_reg {
static int event_reg(int fd, const char *command, int *write, int *enabled)