add unregister ioctl
add ringbuffer interface