From: Richard Yang <weiyang@linux.vnet.ibm.com>
To: linux-pci@vger.kernel.org
Subject: What is the difference between number and secondary in pci_bus?
Date: Sun, 1 Apr 2012 16:38:35 +0800 [thread overview]
Message-ID: <20120401083835.GA23662@richard> (raw)
All
In the structure of pci_bus.
There is number, primary, secondary and subordinate.
primary and subordinate are easy to understand, while the number and
secondary confused me.
I think secondary means the current bus number.
Then what number stands for?
In pci_alloc_child_bus(),
child->number = child->secondary = busnr;
So they are the same?
Then we need two different field?
I search the git log while find these code is imported as the first
commit. So I don't see the history.
--
Richard Yang
Help you, Help me
next reply other threads:[~2012-04-01 8:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-01 8:38 Richard Yang [this message]
2012-04-02 23:30 ` What is the difference between number and secondary in pci_bus? Bjorn Helgaas
2012-04-03 15:17 ` Richard Yang
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=20120401083835.GA23662@richard \
--to=weiyang@linux.vnet.ibm.com \
--cc=linux-pci@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;
as well as URLs for NNTP newsgroup(s).