Re:

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Shreyansh Jain <shreyansh.jain@...>
Cc: <linux-kernel@...>
Subject: Re:
Date: Thursday, September 27, 2007 - 2:14 am

On Thu, 27 Sep 2007 05:19:06 -0000, Shreyansh Jain said:



Go look at the call sites for this function - I bet that most of them, if they
check the return code at all, only check for zero or nonzero, because they only
*care* about the case that returns zero. Since they already know they're not
passing a NULL pointer, they don't worry about that case returning a 1.  So
there's only two realistic returns - either the module is live or it isn't.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
try_module_get, Shreyansh Jain, (Thu Sep 27, 1:19 am)
Re: , , (Thu Sep 27, 2:14 am)
Re: try_module_get code understanding, Heiko Carstens, (Thu Sep 27, 2:13 am)