Hi, On Sun, 2010-05-16 at 03:06 +0545, vikas chauhan wrote: > Hi, > Can any one tell me, what are the > functions try_module_get and module_put used for ? I couldn't find any > documentation by googling. > > > Regards, > Vikas lxr doesn't reveal much, however a quick scan of kernel src reveals this comment about try_module_get (sir_dongle.c in /drivers/net/irda, line 91) /* handling of SMP races with dongle module removal - three cases: * 1) dongle driver was already unregistered - then we haven't found the * requested dongle above and are already out here * 2) the module is already marked deleted but the driver is still * registered - then the try_module_get() below will fail * 3) the try_module_get() below succeeds before the module is marked * deleted - then sys_delete_module() fails and prevents the removal * because the module is in use. */ HTH -- Best regards, Kris -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ