c
if (io_data && io_data->kiocb) {
    bool kiocb_has_eventfd = io_data->kiocb->ki_flags & IOCB_EVENTFD;
    // ... rest of the code
}
