@Salem
I'm actually monitoring only one fd (my serial port). My question is: Is threading the only way to go, because i want to continuously monitor for any input data on the port (and read it if...
Type: Posts; User: itisravi
@Salem
I'm actually monitoring only one fd (my serial port). My question is: Is threading the only way to go, because i want to continuously monitor for any input data on the port (and read it if...
select and poll are functions that block (with timeout options). Now if i want to _continuously_ monitor the files for input, i need to call these functions inside a while loop.This means my program...
Hello MK27,
Thanks for the reply. Looked into POLL. I want something that's asynchronous. If i were to achieve asynchronous notification using POLL, may be i need to run an infinite loop on POLL...
Been reading up on signals. I gather that once inside the handler,by default, the signal which called the handler is blocked from triggering again until the handler completes. So i called sleep()...
Hi,
I'm using
int sigaction(int signum, const struct sigaction *act,struct sigaction *oldact);
to register my realtime signal and the
void (*sa_sigaction)(int,...
Hello,
I'm currently learning how device drivers are written for Linux (and have to write one shortly). From what i understand, the final control provided to user space for accessing the driver...
I looked into select() and poll(). But again these (either blocking or non blocking) are over once the call to these functions is completed. I was thinking more an interrupt based notification so...
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...