Results 1 to 1 of 1
Hi,
Q1
if (signal_pending(current))
return -ERESTARTSYS; /* signal: tell the fs layer to handle it */
What exactly this will do when i call in my driver and when should ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-27-2009 #1Just Joined!
- Join Date
- Feb 2009
- Posts
- 1
Clarifcations on Signal_pending,down_interruptible and wait_event_interruptible
Hi,
Q1
if (signal_pending(current))
return -ERESTARTSYS; /* signal: tell the fs layer to handle it */
What exactly this will do when i call in my driver and when should i use this one ?
Q2
I am little bit confused with down_interruptible ,i am sure that if semaphore is not available it will be blocked , but the operation is interruptible,it allows a user-space process that is waiting on a semaphore to be interrupted by the user Please elobrate this one in easy language so that i can understand with simple example if possible taking two process like read and write.....
Q3
wait_event_interruptible --How do i interupt this one from other process using signal ?
Thanks in advance
Guru


Reply With Quote
