From: Alan <alan@lxorguk.ukuu.org.uk>
To: Arjan van de Ven <arjan@infradead.org>
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: Re: [PATCH] pci: Introduce pci_find_present
Date: Wed, 15 Nov 2006 16:35:56 +0000 [thread overview]
Message-ID: <20061115163556.0937531e@localhost.localdomain> (raw)
In-Reply-To: <1163608000.31358.134.camel@laptopd505.fenrus.org>
On Wed, 15 Nov 2006 17:26:39 +0100
Arjan van de Ven <arjan@infradead.org> wrote:
> On Wed, 2006-11-15 at 16:24 +0000, Alan wrote:
> > This works like pci_dev_present but instead of returning boolean returns
> > the matching pci_device_id entry. This makes it much more useful. Code
> > bloat is basically nil as the old boolean function is rewritten in terms
> > of the new one.
> >
>
> shouldn't this take a refcount on the device (which the user of this
> function then has to put again) ?
Nope. It is returning a pci_device_id from an array of pci_device_id
values that were passed into the function. It is not returning a pci
device so it does not require refcounts.
Alan
prev parent reply other threads:[~2006-11-15 16:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-15 16:24 Alan
2006-11-15 16:26 ` Arjan van de Ven
2006-11-15 16:35 ` Alan [this message]
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=20061115163556.0937531e@localhost.localdomain \
--to=alan@lxorguk.ukuu.org.uk \
--cc=akpm@osdl.org \
--cc=arjan@infradead.org \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome