]> git.neil.brown.name Git - history.git/commit
driverfs: Add ability to create and remove files for bus drivers
authorPatrick Mochel <mochel@osdl.org>
Fri, 2 Aug 2002 05:18:12 +0000 (22:18 -0700)
committerPatrick Mochel <mochel@osdl.org>
Fri, 2 Aug 2002 05:18:12 +0000 (22:18 -0700)
commit9eba2d84e3b815a668cfe421ee86bf51c3793e70
treed86f50c5acec2d4dd14397dac067540fbd4410e0
parent2b553d802fe33fb2276853d1a0c63bb86806dbea
driverfs: Add ability to create and remove files for bus drivers

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.
drivers/base/fs/bus.c
include/linux/device.h