diff options
author | Keiichiro Tokunaga <tokunaga.keiich@jp.fujitsu.com> | 2005-05-08 08:28:53 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-20 18:15:29 -0400 |
commit | 4b45099b75832434c5113b9aed1499f8a69d13d5 (patch) | |
tree | dbb6cf4a3937120be0cfd6f4699926fa4689ac8d /include/linux/node.h | |
parent | f409661877a25d11c2495bcd879807f17c286684 (diff) |
[PATCH] Driver core: unregister_node() for hotplug use
This adds a generic function 'unregister_node()'.
It is used to remove objects of a node going away
for hotplug. All the devices on the node must be
unregistered before calling this function.
Signed-off-by: Keiichiro Tokunaga <tokunaga.keiich@jp.fujitsu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
diff -puN drivers/base/node.c~numa_hp_base drivers/base/node.c
Diffstat (limited to 'include/linux/node.h')
-rw-r--r-- | include/linux/node.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/node.h b/include/linux/node.h index 6e0a697e594e..254dc3de650b 100644 --- a/include/linux/node.h +++ b/include/linux/node.h | |||
@@ -27,6 +27,7 @@ struct node { | |||
27 | }; | 27 | }; |
28 | 28 | ||
29 | extern int register_node(struct node *, int, struct node *); | 29 | extern int register_node(struct node *, int, struct node *); |
30 | extern void unregister_node(struct node *node); | ||
30 | 31 | ||
31 | #define to_node(sys_device) container_of(sys_device, struct node, sysdev) | 32 | #define to_node(sys_device) container_of(sys_device, struct node, sysdev) |
32 | 33 | ||