I'm accessing serial ports in linux from user space using ioctl, read and write.Now i need to get notifications from the kernel if there is new data available or if the port's buffer is empty.How do i get this done without polling? There is something called inotify but i guess that is for 'regular' files (as opposed to device files)