All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Friesen <cfriesen@nortelnetworks.com>
To: Ronald Bultje <rbultje@ronald.bitfreak.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: some 2.5.66 issues
Date: Fri, 28 Mar 2003 17:35:21 -0500	[thread overview]
Message-ID: <3E84CE29.8070806@nortelnetworks.com> (raw)
In-Reply-To: 1048893853.1314.8.camel@localhost.localdomain

Ronald Bultje wrote:

> Now, something more problematic. I'm being told to use try_module_get()
> instead of MOD_INC_USE_COUNT. Cool. Somehow, it returns 1. I had a look
> at the code in linux/module.h and am a bit confused:

> Why does it only return 0 if the module is not alive? This sounds...
> er... weird? Can someone please enlighten me?

Presumably so you can treat the result as a boolean true/false value.

Chris



-- 
Chris Friesen                    | MailStop: 043/33/F10
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com


  reply	other threads:[~2003-03-28 22:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-28 23:24 some 2.5.66 issues Ronald Bultje
2003-03-28 22:35 ` Chris Friesen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-03-28 22:50 mikpe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E84CE29.8070806@nortelnetworks.com \
    --to=cfriesen@nortelnetworks.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rbultje@ronald.bitfreak.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.