WIP on I/O loop

Add set_kevent()