1PCI_BUS_ALLOC_RESOUR(9) Hardware Interfaces PCI_BUS_ALLOC_RESOUR(9)
2
3
4
6 pci_bus_alloc_resource - allocate a resource from a parent bus
7
9 int pci_bus_alloc_resource(struct pci_bus * bus, struct resource * res,
10 resource_size_t size, resource_size_t align,
11 resource_size_t min,
12 unsigned long type_mask,
13 resource_size_t (*alignf) (void *, const struct resource *, resource_size_t, resource_size_t),
14 void * alignf_data);
15
17 bus
18 PCI bus
19
20 res
21 resource to allocate
22
23 size
24 size of resource to allocate
25
26 align
27 alignment of resource to allocate
28
29 min
30 minimum /proc/iomem address to allocate
31
32 type_mask
33 IORESOURCE_* type flags
34
35 alignf
36 resource alignment function
37
38 alignf_data
39 data argument for resource alignment function
40
42 Given the PCI bus a device resides on, the size, minimum address,
43 alignment and type, try to find an acceptable resource allocation for a
44 specific device resource.
45
47Kernel Hackers Manual 3.10 June 2019 PCI_BUS_ALLOC_RESOUR(9)