Lines Matching refs:bus
8 int bus_register(struct bus_type * bus);
14 Each bus type in the kernel (PCI, USB, etc) should declare one static
31 When a bus driver is initialized, it calls bus_register. This
32 initializes the rest of the fields in the bus object and inserts it
33 into a global list of bus types. Once the bus object is registered,
34 the fields in it are usable by the bus driver.
44 them are inherently bus-specific. Drivers typically declare an array
45 of device IDs of devices they support that reside in a bus-specific
48 The purpose of the match callback is to give the bus an opportunity to
51 particular device, without sacrificing bus-specific functionality or
54 When a driver is registered with the bus, the bus's list of devices is
66 lists as they please, but conversion to the bus-specific type may be
71 int bus_for_each_dev(struct bus_type * bus, struct device * start, void * data,
74 int bus_for_each_drv(struct bus_type * bus, struct device_driver * start,
79 synchronized by taking the bus's lock (read currently). The reference
87 There is a top-level directory named 'bus'.
89 Each bus gets a directory in the bus directory, along with two default
92 /sys/bus/pci/
96 Drivers registered with the bus get a directory in the bus's drivers
99 /sys/bus/pci/
107 Each device that is discovered on a bus of that type gets a symlink in
108 the bus's devices directory to the device's directory in the physical
111 /sys/bus/pci/
137 This can then be used to add and remove the attribute from the bus's