Re: try_module_get and module_put usage

2010-05-16 Thread vikas chauhan
Hi all, Got this link, explaining all things in detail about above functions. http://lwn.net/Articles/22197/ . Thanks for all the help. Vikas On 16 May 2010 20:20, vikas chauhan wrote: > > > On 16 May 2010 20:17, vikas chauhan wrote: > >> Actually, I was a bit confused about reference counts,

Re: try_module_get and module_put usage

2010-05-16 Thread vikas chauhan
On 16 May 2010 20:17, vikas chauhan wrote: > Actually, I was a bit confused about reference counts, since some older > modules ( like the OSSv4 drivers ) use their own copy of reference counts, > and the above functions, it seems like , is being used by kernel to maintain > its own reference coun

Re: try_module_get and module_put usage

2010-05-16 Thread Simon Kitching
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. > The implementation of try_module_get can be found in file include/linux/module.h (it is an i

Re: try_module_get and module_put usage

2010-05-15 Thread Microbit_Ubuntu
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

try_module_get and module_put usage

2010-05-15 Thread vikas chauhan
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