Messages in this thread | | | Date | Thu, 13 Apr 2006 20:10:35 +0100 | From | Paulo Marques <> | Subject | Re: [PATCH] Kmod optimization |
| |
tyler@agat.net wrote: > > +/* Test if a module is loaded : must hold module_mutex */ > +inline int is_loaded(const char *module_name) > +{ > + struct module *mod = find_module(module_name); > + > + if (!mod) > + return 1;
FWIW, this logic seems reversed....
-- Paulo Marques - www.grupopie.com
Pointy-Haired Boss: I don't see anything that could stand in our way. Dilbert: Sanity? Reality? The laws of physics? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |