From: Jeff Garzik <jgarzik@mandrakesoft.com>
To: Zach Brown <zab@zabbo.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC] pci_dma_set_mask()
Date: Wed, 28 Feb 2001 11:26:10 -0500 [thread overview]
Message-ID: <3A9D26A2.14563DE1@mandrakesoft.com> (raw)
In-Reply-To: <20010228103727.I23735@tetsuo.zabbo.net>
Zach Brown wrote:
> +int
> +pci_set_dma_mask(struct pci_dev *dev, dma_addr_t mask)
> +{
> + if(! pci_dma_supported(dev, mask))
> + return 0;
> +
> + dev->dma_mask = mask;
> +
> + return 1;
> +}
pci_dma_supported has a boolean return, but the kernel norm is to return
zero on success, and -EFOO on error. I like your proposal with the
extremely minor nit that I think pci_set_dma_mask should return ENODEV
or EIO or something on error, and zero on success.
Jeff
--
Jeff Garzik | "You see, in this world there's two kinds of
Building 1024 | people, my friend: Those with loaded guns
MandrakeSoft | and those who dig. You dig." --Blondie
next prev parent reply other threads:[~2001-02-28 16:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-28 15:37 Zach Brown
2001-02-28 16:26 ` Jeff Garzik [this message]
2001-02-28 21:14 ` Zach Brown
2001-02-28 23:23 ` David S. Miller
2001-02-28 23:37 ` Zach Brown
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=3A9D26A2.14563DE1@mandrakesoft.com \
--to=jgarzik@mandrakesoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zab@zabbo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®