linux/drivers/base
Kay Sievers 0f4dafc056 Kobject: auto-cleanup on final unref
We save the current state in the object itself, so we can do proper
cleanup when the last reference is dropped.

If the initial reference is dropped, the object will be removed from
sysfs if needed, if an "add" event was sent, "remove" will be send, and
the allocated resources are released.

This allows us to clean up some driver core usage as well as allowing us
to do other such changes to the rest of the kernel.

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-01-24 20:40:39 -08:00
..
power driver core: clean up device_shutdown 2008-01-24 20:40:25 -08:00
attribute_container.c Driver core: include linux/mutex.h from attribute_container.c 2007-07-11 16:09:01 -07:00
base.h Driver core: move the static kobject out of struct driver 2008-01-24 20:40:35 -08:00
bus.c Kobject: change drivers/base/bus to use kobject_init_and_add 2008-01-24 20:40:35 -08:00
class.c Kobject: rename kobject_init_ng() to kobject_init() 2008-01-24 20:40:38 -08:00
core.c Kobject: auto-cleanup on final unref 2008-01-24 20:40:39 -08:00
cpu.c CPU online file permission 2007-07-31 15:39:39 -07:00
dd.c Driver core: fix race in __device_release_driver 2008-01-24 20:40:35 -08:00
devres.c Driver core: fix devres_release_all() return value 2007-07-11 16:09:02 -07:00
dma-mapping.c devres: device resource management 2007-02-09 17:39:36 -05:00
dmapool.c cleanup asm/scatterlist.h includes 2007-11-02 08:47:06 +01:00
driver.c Kobject: rename kobject_add_ng() to kobject_add() 2008-01-24 20:40:38 -08:00
firmware_class.c Fix Firmware class name collision 2007-10-12 14:51:06 -07:00
firmware.c firmware: change firmware_kset to firmware_kobj 2008-01-24 20:40:23 -08:00
hypervisor.c kobject: convert /sys/hypervisor to use kobject_create 2008-01-24 20:40:15 -08:00
init.c [PATCH] Driver Core: Add /sys/hypervisor when needed 2006-06-21 12:40:48 -07:00
isa.c [PATCH] Driver model: add ISA bus 2006-06-21 12:40:49 -07:00
Kconfig Driver core: add CONFIG_UEVENT_HELPER_PATH 2007-10-12 14:51:01 -07:00
Makefile Driver core: move the driver specific module code into the driver core 2008-01-24 20:40:35 -08:00
map.c [PATCH] kobj_map semaphore to mutex conversion 2006-03-20 13:42:58 -08:00
memory.c memory hotplug: rearrange memory hotplug notifier 2007-10-22 08:13:17 -07:00
module.c Driver core: move the static kobject out of struct driver 2008-01-24 20:40:35 -08:00
node.c mm: add node states sysfs class attributeS 2007-10-16 09:43:03 -07:00
platform.c Driver core: move the static kobject out of struct driver 2008-01-24 20:40:35 -08:00
sys.c Kobject: change drivers/base/sys.c to use kobject_init_and_add 2008-01-24 20:40:28 -08:00
topology.c cpu hotplug: topology: remove topology_dev_map 2007-10-18 14:37:21 -07:00
transport_class.c