Thread (4 messages) 4 messages, 2 authors, 2005-03-28

register_dev

flat view

From: Catalin(ux aka Dino) BOIE <hidden>
Date: 2005-03-28 11:56:41

Hello!

I have a little problem.

I do a register_netdev inside a _init function of a home made qdisc.

2 cases:

1. Modprobe before working with it
	Everything works ok.
2. the module is not loaded and I let tc trigger module loading
	tc blocks on modprobe
	modprobe blocks on register_netdev
	Very probably that rtnl_sem is taken by netlink in kernel and
	register_nedev tries to aquire the sem, too.

If I use register_netdevice, seems ok but in case 1, the is no sem protection anymore.
How I can resolve this problem?

Thank you!
---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help