Add kr_device_flush