lkml.org 
[lkml]   [1998]   [Jun]   [7]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSun, 7 Jun 1998 18:03:58 +0400 (MSD)
From"A.N.Kuznetsov" <>
SubjectRe: Have we started locking the Net device chain?
In article <E0yidHa-0000EJ-00@dwmw2.robinson.cam.ac.uk> you wrote:
:                                       and my current suspicion is that 
: someone's introduced a lock on the device structure, and that lock is already 
: held when the device open routine is called, hence a deadlock.
Yes, it is locked.

: Would using register_netdevice() instead of register_netdev() be useful?

Yes, you should use register_netdevice() if you are sure
that the lock has been already acquired. BTW it is always the case,
when you are inside dev_open(), dev_close() or dev_ifsioc().

register_netdev() may be used only by init_module() routines
or when ioctl is originated not by networking (f.e. by tty_ioctl())

Alexey Kuznetsov

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 12:43    [W:0.155 / U:0.090 seconds]
©2003-2008 Jasper Spaans