Re: try_module_get code understanding
From: Heiko Carstens
Date: Thu Sep 27 2007 - 03:12:01 EST
> Then what is return value if my module tries to 'get' a module which does not
> exist (and is a module, not in-built)? . Is it '1' ?
> Or am I imagining a hypothetical scenario which would not exist?
That is not supposed to happen. After a module got unloaded there shouldn't
be any objects around anymore that have an .owner member with an address that
points to the now non-existent module.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/