hostapd_may_read
if (hostapd_may_read(fd, &cmd, sizeof(int)))
int hostapd_may_read(int, void *, size_t);