X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fkobject.h;h=c374b5fa8d3bbd0c48392c7b6207346efe510113;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=c187c53cecd0f94dd15bf3340b87c9a3652ea6d3;hpb=f7ed79d23a47594e7834d66a8f14449796d4f3e6;p=linux-2.6.git diff --git a/include/linux/kobject.h b/include/linux/kobject.h index c187c53ce..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 { @@ -257,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,