summaryrefslogtreecommitdiff
path: root/include/linux/console_struct.h
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2002-10-15 20:54:20 -0700
committerPatrick Mochel <mochel@osdl.org>2002-10-15 20:54:20 -0700
commit4278bccc2d9707c9c4ee1769b464bffe4dfd820a (patch)
tree3e012877913aafa17597149206cc050c576ba995 /include/linux/console_struct.h
parent67d93a0ad7b87d740f25f93d12eb5d5e870d7030 (diff)
driver model: change bus refcounting scheme to match devices'.
Based on recent changes to device refcounting/unregistration. struct bus_type gets a ->present field, which is set when the bus is registered. bus_unregister() is added, which only clears ->present and calls put_bus(). get_bus() checks the ->present and returns NULL if clear. This allows all current references to buses to keep valid structures, while preventing any new references to the bus structure.
Diffstat (limited to 'include/linux/console_struct.h')
0 files changed, 0 insertions, 0 deletions