Re: Semaphore

2012-02-28 Thread Rajath N R
Hi,
Once process terminated for what ever reason, kernel should release all
the resources held by that process including lock.
do_exit()--exit_sem().

thanks,
Rajath
On Tue, Feb 28, 2012 at 1:53 PM, Rajath N R rajat...@gmail.com wrote:

 Hi,
 I think santosh is talking about user land IPC (semget).
 thread/process which has acquired a sema lock/sem down using semop(2)
 syscall.



 Thanks,
 Rajath


 On Fri, Feb 24, 2012 at 3:54 PM, Kristof Provost kris...@sigsegv.bewrote:

 On 2012-02-24 12:15:03 (+0200), Kosta Zertsekel zertse...@gmail.com
 wrote:
  I think of user land program opening a socket and crashing on
  segmentation fault.
  In code 'socket' syscall does:
  sock_map_fd -- sock_alloc_file -- alloc_file -- ... get lost ...
  Where exactly in this case lock is held - I mean the lock that gets
  released when user land process dies?

 In this case there doesn't appear to be any lock. The sock_map_fd
 function is most probably called from the socket syscall. This call
 isn't locked. Multiple processes can be in the socket syscall at the
 same time.
 There certainly won't be a (kernel) lock which is held between two system
 calls.

 Regards,
 Kristof


 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




 --
 Thanks  Regards,
 Rajath N R




-- 
Thanks  Regards,
Rajath N R
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: mask out an irq line

2012-02-28 Thread Rajath N R
Hi,
 shared/non-shared the corresponding interrupt line is masked out on
all processors.
preventing another interrupt on the same line from being received.

Thanks,
Rajath

2012/2/26 cheneydeng cheneyd...@qq.com

 hi all,
 I know that when an interrupt handler is excuting, the irq line which
 generated the signal will be masked out,however,if the line is shared by
 many device.Will all be masked out or just the one which is handling now be
 masked out ?Doed it tell the difference by the forth argument of
 request_irq() ?





 **
 --
 best regards!
   cheneydeng
 **
 


 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




-- 
Thanks  Regards,
Rajath N R
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies