Re: Blocking I/O and rmmod

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Incase you recieve a signal while you are sleeping on a semaphore in the
kernel mode, the process would be woken up. Now its upto you to handle. 
Either you can continue sleeping and wait for the I/O to complete or you
break and comes out of it. Based on your implementation you would know 
the reason for breaking out of the semaphore, i.e if the purpose of your
wait is over or if you have recieved a signal or so on. Now you can
perform the respective cleanup and return the control back to the User
Process.

Thanks,
Sumit

----- Original Message -----
From: J <jeebu19@yahoo.com>
Date: Friday, March 1, 2002 4:46 pm
Subject: Re: Blocking I/O and rmmod

> On Thu, Feb 28, 2002 at 01:57:49PM -0600, David Stroupe wrote:
> > The biggest concern that I have is that the user app crashes and 
> can not 
> > send/do anything.  My driver is still hanging out trying to 
> service the 
> > blocked request.  Under those circumstances I have two concerns. 
> What 
> 
> Your driver wait will be interrupted with signal SIGSEGV ( or 
> SIGBUS (?) )
> ,provided you are in interruptible wait. You clean up here and when
> return user mode, application can crash.
> 
> Regards,
> Sourav
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> IRC Channel:   irc.openprojects.net / #kernelnewbies
> Web Page:      http://www.kernelnewbies.org/
> 
> 
begin:vcard
n:Agarwal;Sumit
fn:Sumit Agarwal
tel;cell:+919845205210
tel;fax:+91-80-5732696
tel;home:+919845205210
tel;work:+91-805732296 / 93 extn. 5243
url:www.wipro.com
org:Wipro Technologies;SIDC, Embedded and Internet Division
adr:;;Wipro Technologies, Chamundi Complex, No.26, Hosur Main Road, Bommanahalli;Bangalore;Karnataka;560068;INDIA
version:2.1
email;internet:sumit.agarwal@wipro.com
title:Senior Software Engineer
end:vcard


**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.


 ********************************************************************

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux