• Patrick Mochel's avatar
    driverfs: Add ability to create and remove files for bus drivers · 9eba2d84
    Patrick Mochel authored
    These behave identically to device attribute files, but with different types. 
    
    We get struct bus_attribute, and a macro, BUS_ATTR for declaring attributes. It takes the same parameters
    as DEVICE_ATTR, though the callbacks for bus attributes take a struct bus_type as the first parameter.
    9eba2d84
bus.c 2.59 KB