Re: modprobe + request_module() deadlock

Gerd Knorr
2004-11-19T12:04:50Z

> > But IMHO Rusty should provide a way to specify those "recommended" install
> > lines in the modules themselves (so that they finally go
> > to /lib/modules/`uname -r`/modules.alias or a similar autogenerated file),
> > like that's already done wih aliases and char-majors.
>
> Well, how about to add a new marker in the driver code such as
>
> MODULE_DEPENDS_ON("somemodule");
>
> so that depmod can pick it up?

Wouldn't work for me as this isn't static. saa7134 has to look at the
hardware, then decide whenever it should load saa7134-empress,
saa7134-dvb or none of them.

On the other hand I don't depend on request_module() waiting for the
modprobe being finished. So maybe we can solve that with a
request_module_async()?

Gerd