Re: Have we started locking the Net device chain?

A.N.Kuznetsov (kuznet@ms2.inr.ac.ru)
Sun, 7 Jun 1998 18:03:58 +0400 (MSD)


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