tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Autoloading of pseudo-device modules

On Sun, Jan 25, 2009 at 08:19:56PM +0000, Andrew Doran wrote:

> - I think that pooka pointed out the race condition with module loading in
>   your code. The module can be gone by the time you try to use it. You can
>   work around this by testing module_gen. 1) cache module_gen 2) try to
>   autoload device driver 3) if it fails, and module_gen != cached copy,
>   restart.

"if it fails" here refers to ENXIO from device open.


Home | Main Index | Thread Index | Old Index