freebsd-dev/sys
John Baldwin 496dfa89a6 Convert pci_delete_child() to a bus_child_deleted() method.
Instead of providing a wrapper around device_delete_child() that the PCI
bus and child bus drivers must call explicitly, move the bulk of the logic
from pci_delete_child() into a bus_child_deleted() method
(pci_child_deleted()).  This allows PCI devices to be safely deleted via
device_delete_child().
- Add a bus_child_deleted method to the ACPI PCI bus which clears the
  device_t associated with the corresponding ACPI handle in addition to
  the normal PCI bus cleanup.
- Change cardbus_detach_card to call device_delete_children() and move
  CardBus-specific delete logic into a new cardbus_child_deleted() method.
- Use device_delete_child() instead of pci_delete_child() in the SRIOV code.
- Add a bus_child_deleted method to the OpenFirmware PCI bus drivers which
  frees the OpenFirmware device info for each PCI device.

Reviewed by:	imp
Tested on:	amd64 (CardBus and PCI-e hotplug)
Differential Revision:	https://reviews.freebsd.org/D5831
2016-04-06 04:10:22 +00:00
..
amd64 Add kern.features flags for linux and linux64 modules 2016-04-05 22:36:48 +00:00
arm Fix typo. No functional change. 2016-04-05 13:56:43 +00:00
arm64 Add a table to map from the FreeBSD CPUID space to the GIC CPUID space. On 2016-04-04 17:04:33 +00:00
boot Rework BCM283x gpio interrupt controller for INTRNG. It's used on RPI-B 2016-04-05 13:45:23 +00:00
bsm Merge from contrib/openbsm to bring the kernel audit bits up to date with OpenBSM 1.2 alpha 4: 2015-12-20 23:22:04 +00:00
cam chdone(): Prevent returning uninitialized scalar value. 2016-04-03 16:38:15 +00:00
cddl remove emulation of VFS_HOLD and VFS_RELE from opensolaris compat 2016-04-02 16:25:46 +00:00
compat Fix indentation oops. 2016-04-03 14:40:54 +00:00
conf arm64: bzero optimization 2016-04-04 07:06:20 +00:00
contrib Sync in the latest CloudABI system call definitions. 2016-03-31 18:50:06 +00:00
crypto Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
ddb Add td_swinvoltick to track last involuntary context switch 2016-03-25 19:35:29 +00:00
dev Convert pci_delete_child() to a bus_child_deleted() method. 2016-04-06 04:10:22 +00:00
fs Update comment: Linux does set a randomized generation number of an inode 2016-04-01 03:21:01 +00:00
gdb
geom g_sched_destroy(): prevent return of uninitialized scalar variable. 2016-04-03 16:25:51 +00:00
gnu Update our copy of the Linux dts files to be in sync with Linux 4.5-rc1. We 2016-02-09 16:42:32 +00:00
i386 Add kern.features flags for linux and linux64 modules 2016-04-05 22:36:48 +00:00
isa Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
kern Use proper locking macros in RACCT in RCTL. 2016-04-05 11:30:52 +00:00
kgssapi kcrypto_aes: Use separate sessions for AES and SHA1 2016-02-02 00:14:51 +00:00
libkern
mips Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
modules Add support for the Nuvoton NCT5104D. 2016-03-31 04:57:38 +00:00
net Remove an unneeded check. 2016-04-05 00:09:19 +00:00
net80211 [net80211] missed commit from last one - always cleanup superg state. 2016-04-06 01:22:20 +00:00
netgraph Migrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere(). 2016-02-27 03:38:01 +00:00
netinet Set the chunk id for ERROR chunks. 2016-04-01 20:38:15 +00:00
netinet6 Unbreak the RSS/PCBGROUp build. 2016-03-31 00:53:23 +00:00
netipsec Fix handling of net.inet.ipsec.dfbit=2 variable. 2016-03-18 09:03:00 +00:00
netnatm
netpfil pf: Improve forwarding detection 2016-03-16 06:42:15 +00:00
netsmb The problem report was for a crash that happened when smbfs was 2015-11-18 23:04:01 +00:00
nfs Do not try to install a default route for each interface found, because 2016-03-27 23:16:37 +00:00
nfsclient
nfsserver
nlm
ofed tcp/lro: Use tcp_lro_flush_all in device drivers to avoid code duplication 2016-04-01 06:28:33 +00:00
opencrypto Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
pc98 Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
powerpc Convert pci_delete_child() to a bus_child_deleted() method. 2016-04-06 04:10:22 +00:00
riscv Add support for ddb(4). 2016-03-10 15:51:43 +00:00
rpc Remove some NULL checks for M_WAITOK allocations. 2016-03-29 13:56:59 +00:00
security Busy the mount point which is the owner of the audit vnode, around 2016-01-16 10:06:33 +00:00
sparc64 Convert pci_delete_child() to a bus_child_deleted() method. 2016-04-06 04:10:22 +00:00
sys Fix sed functions 'i' and 'a' from discarding leading white space. 2016-04-06 00:55:39 +00:00
teken
tests
tools Fix MFS builds when both MD_ROOT_SIZE and MFS_IMAGE are specified 2016-02-02 07:02:51 +00:00
ufs Remove some NULL checks for M_WAITOK allocations. 2016-03-29 13:56:59 +00:00
vm Remove UMA_ZONE_REFCNT feature, now unused. 2016-03-01 00:33:32 +00:00
x86 x86 topo: add some comments, descriptions and references to documentation 2016-04-05 10:36:40 +00:00
xdr
xen xenbus: add a comment with the names of the generated accessors 2016-01-15 14:34:31 +00:00
Makefile Add riscv to the list of architectures for cscope. 2016-02-29 16:39:27 +00:00