kmsg: add ioctl for kmsg* devices operating on buffers