lkml.org 
[lkml]   [2012]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjectpci: question about the life cycle of pci_dev and its parent pci_bus
From
Hi,

I have a question about the life cycle of pci_dev and its parent pci_bus.
In pci_destroy_dev(), we remove the pci_dev from the bus_list, so
pci_dev is isolated from its parent pci_bus, and their life cycle are
independent too. But it seems that in pci_dev, we can still access the
pci_bus from the pointer pci_dev->bus. To resolve such issue, I think
during the pci_dev removal, there should be process to 1.prevent the
reader incoming 2. ensure the current reader has exit. But can not
find them.

Could anyone tell me?

Thanx, pingfan


\
 
 \ /
  Last update: 2012-08-23 08:21    [W:0.039 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site