try signal based i/o. basically you have set a signal handler (SIG_IO)
and then handle read/write when the signal gets generated. i don't exactly
remember the command. it the function call is aio_read/aio_write. check
the man
thanks manas Anjali Kulkarni wrote: Hi, Thanks a lot for the info. But how can I use poll and select to make the kernel call the user-upcall? Poll and select will run in user-mode and will take processor cycles in busy waiting. I want an event-driven mechanism in which kernel will automatically call the upcall(like an interrupt) when it receives a data packet at the TCP layer, to avoid polling in user code to check if data has arrived at the socket.I will read about kqueues, and fcntl which I dont know much about:) Thanks,Anjali |
- User-Level upcalls Anjali Kulkarni
- Re: User-Level upcalls Alfred Perlstein
- Re: User-Level upcalls Anjali Kulkarni
- manas