MCPcopy Create free account
hub / github.com/coreboot/coreboot / alloc_bus

Function alloc_bus

src/device/device.c:154–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154struct bus *alloc_bus(struct device *parent)
155{
156 struct bus *bus;
157 spin_lock(&bus_lock);
158 bus = __alloc_bus(parent);
159 spin_unlock(&bus_lock);
160 return bus;
161}
162
163/**
164 * See if a device structure already exists and if not allocate it.

Callers 6

ioapic_create_devFunction · 0.50
qemu_aarch64_scan_busFunction · 0.50
rdn2_aarch64_scan_busFunction · 0.50
create_domainFunction · 0.50
create_ioat_domainFunction · 0.50
mp_cpu_bus_initFunction · 0.50

Calls 3

spin_lockFunction · 0.85
__alloc_busFunction · 0.85
spin_unlockFunction · 0.85

Tested by

no test coverage detected