X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fkobject.h;fp=include%2Flinux%2Fkobject.h;h=c374b5fa8d3bbd0c48392c7b6207346efe510113;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=2d229327959ed9809042af03c8fdb917913e000e;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/include/linux/kobject.h b/include/linux/kobject.h index 2d2293279..c374b5fa8 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h @@ -24,7 +24,6 @@ #include #include #include -#include #include #define KOBJ_NAME_LEN 20 @@ -57,7 +56,6 @@ struct kobject { struct kset * kset; struct kobj_type * ktype; struct dentry * dentry; - wait_queue_head_t poll; }; extern int kobject_set_name(struct kobject *, const char *, ...) @@ -82,8 +80,6 @@ extern void kobject_unregister(struct kobject *); extern struct kobject * kobject_get(struct kobject *); extern void kobject_put(struct kobject *); -extern struct kobject *kobject_add_dir(struct kobject *, const char *); - extern char * kobject_get_path(struct kobject *, gfp_t); struct kobj_type { @@ -190,8 +186,6 @@ struct subsystem _varname##_subsys = { \ /* The global /sys/kernel/ subsystem for people to chain off of */ extern struct subsystem kernel_subsys; -/* The global /sys/hypervisor/ subsystem */ -extern struct subsystem hypervisor_subsys; /** * Helpers for setting the kset of registered objects. @@ -259,8 +253,9 @@ struct subsys_attribute { }; extern int subsys_create_file(struct subsystem * , struct subsys_attribute *); +extern void subsys_remove_file(struct subsystem * , struct subsys_attribute *); -#if defined(CONFIG_HOTPLUG) +#if defined(CONFIG_HOTPLUG) & defined(CONFIG_NET) void kobject_uevent(struct kobject *kobj, enum kobject_action action); int add_uevent_var(char **envp, int num_envp, int *cur_index,