/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/samples/kobject/ |
H A D | Makefile | 1 obj-$(CONFIG_SAMPLE_KOBJECT) += kobject-example.o kset-example.o
|
H A D | kset-example.c | 2 * Sample kset and ktype implementation 18 * This module shows how to create a kset in sysfs called 19 * /sys/kernel/kset-example 20 * Then tree kobjects are created and assigned to this kset, "foo", "baz", 186 static struct kset *example_kset; 202 * As we have a kset for this kobject, we need to set it before calling 205 foo->kobj.kset = example_kset; 209 * will be created here. As we have already specified a kset for this 211 * will be placed beneath that kset automatically. 236 * Create a kset wit [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/samples/kobject/ |
H A D | Makefile | 1 obj-$(CONFIG_SAMPLE_KOBJECT) += kobject-example.o kset-example.o
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/include/linux/ |
H A D | kobject.h | 64 struct kset *kset; member in struct:kobject 124 int (* const filter)(struct kset *kset, struct kobject *kobj); 125 const char *(* const name)(struct kset *kset, struct kobject *kobj); 126 int (* const uevent)(struct kset *kset, struct kobject *kobj, 143 * struct kset - a set of kobjects of a specific type, belonging to a specific subsystem. 145 * A kset define 159 struct kset { struct [all...] |
H A D | iscsi_boot_sysfs.h | 99 struct kset *kset; member in struct:iscsi_boot_kset
|
H A D | sysdev.h | 41 struct kset kset; member in struct:sysdev_class
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/include/linux/ |
H A D | kobject.h | 64 struct kset *kset; member in struct:kobject 124 int (* const filter)(struct kset *kset, struct kobject *kobj); 125 const char *(* const name)(struct kset *kset, struct kobject *kobj); 126 int (* const uevent)(struct kset *kset, struct kobject *kobj, 143 * struct kset - a set of kobjects of a specific type, belonging to a specific subsystem. 145 * A kset define 159 struct kset { struct [all...] |
H A D | iscsi_boot_sysfs.h | 99 struct kset *kset; member in struct:iscsi_boot_kset
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/base/ |
H A D | sys.c | 80 #define to_sysdev_class(k) container_of(k, struct sysdev_class, kset.kobj) 118 return sysfs_create_file(&c->kset.kobj, &a->attr); 125 sysfs_remove_file(&c->kset.kobj, &a->attr); 129 static struct kset *system_kset; 138 memset(&cls->kset.kobj, 0x00, sizeof(struct kobject)); 139 cls->kset.kobj.parent = &system_kset->kobj; 140 cls->kset.kobj.ktype = &ktype_sysdev_class; 141 cls->kset.kobj.kset = system_kset; 143 retval = kobject_set_name(&cls->kset [all...] |
H A D | base.h | 5 * @subsys - the struct kset that defines this bus. This is the main kobject 20 struct kset subsys; 21 struct kset *drivers_kset; 22 struct kset *devices_kset; 43 * @class_subsys - the struct kset that defines this class. This is the main kobject 56 struct kset class_subsys; 59 struct kset class_dirs; 132 extern struct kset *devices_kset;
|
H A D | memory.c | 36 static const char *memory_uevent_name(struct kset *kset, struct kobject *kobj) argument 41 static int memory_uevent(struct kset *kset, struct kobject *obj, struct kobj_uevent_env *env) argument 323 return sysfs_create_file(&memory_sysdev_class.kset.kobj, 356 return sysfs_create_file(&memory_sysdev_class.kset.kobj, 414 err = sysfs_create_file(&memory_sysdev_class.kset.kobj, 417 err = sysfs_create_file(&memory_sysdev_class.kset.kobj, 492 kobj = kset_find_obj(&memory_sysdev_class.kset, name); 544 memory_sysdev_class.kset [all...] |
H A D | core.c | 152 static int dev_uevent_filter(struct kset *kset, struct kobject *kobj) argument 166 static const char *dev_uevent_name(struct kset *kset, struct kobject *kobj) argument 177 static int dev_uevent(struct kset *kset, struct kobject *kobj, argument 276 struct kset *kset; local 282 /* search the kset, the device belongs to */ 284 while (!top_kobj->kset [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/base/ |
H A D | sys.c | 80 #define to_sysdev_class(k) container_of(k, struct sysdev_class, kset.kobj) 118 return sysfs_create_file(&c->kset.kobj, &a->attr); 125 sysfs_remove_file(&c->kset.kobj, &a->attr); 129 static struct kset *system_kset; 138 memset(&cls->kset.kobj, 0x00, sizeof(struct kobject)); 139 cls->kset.kobj.parent = &system_kset->kobj; 140 cls->kset.kobj.ktype = &ktype_sysdev_class; 141 cls->kset.kobj.kset = system_kset; 143 retval = kobject_set_name(&cls->kset [all...] |
H A D | base.h | 5 * @subsys - the struct kset that defines this bus. This is the main kobject 20 struct kset subsys; 21 struct kset *drivers_kset; 22 struct kset *devices_kset; 43 * @class_subsys - the struct kset that defines this class. This is the main kobject 56 struct kset class_subsys; 59 struct kset class_dirs; 132 extern struct kset *devices_kset;
|
H A D | memory.c | 36 static const char *memory_uevent_name(struct kset *kset, struct kobject *kobj) argument 41 static int memory_uevent(struct kset *kset, struct kobject *obj, struct kobj_uevent_env *env) argument 323 return sysfs_create_file(&memory_sysdev_class.kset.kobj, 356 return sysfs_create_file(&memory_sysdev_class.kset.kobj, 414 err = sysfs_create_file(&memory_sysdev_class.kset.kobj, 417 err = sysfs_create_file(&memory_sysdev_class.kset.kobj, 492 kobj = kset_find_obj(&memory_sysdev_class.kset, name); 544 memory_sysdev_class.kset [all...] |
H A D | core.c | 152 static int dev_uevent_filter(struct kset *kset, struct kobject *kobj) argument 166 static const char *dev_uevent_name(struct kset *kset, struct kobject *kobj) argument 177 static int dev_uevent(struct kset *kset, struct kobject *kobj, argument 276 struct kset *kset; local 282 /* search the kset, the device belongs to */ 284 while (!top_kobj->kset [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/lib/ |
H A D | kobject.c | 97 * kobject_get_path - generate and return the path associated with a given kobj and kset pair. 121 /* add the kobject to its kset's list */ 124 if (!kobj->kset) 127 kset_get(kobj->kset); 128 spin_lock(&kobj->kset->list_lock); 129 list_add_tail(&kobj->entry, &kobj->kset->list); 130 spin_unlock(&kobj->kset->list_lock); 133 /* remove the kobject from its kset's list */ 136 if (!kobj->kset) 139 spin_lock(&kobj->kset 747 kset_find_obj(struct kset *kset, const char *name) argument 765 struct kset *kset = container_of(kobj, struct kset, kobj); local 795 struct kset *kset; local 838 struct kset *kset; local [all...] |
H A D | kobject_uevent.c | 137 struct kset *kset; local 149 /* search the kset we belong to */ 151 while (!top_kobj->kset && top_kobj->parent) 154 if (!top_kobj->kset) { 156 "without kset!\n", kobject_name(kobj), kobj, 161 kset = top_kobj->kset; 162 uevent_ops = kset->uevent_ops; 173 if (!uevent_ops->filter(kset, kob [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/lib/ |
H A D | kobject.c | 97 * kobject_get_path - generate and return the path associated with a given kobj and kset pair. 121 /* add the kobject to its kset's list */ 124 if (!kobj->kset) 127 kset_get(kobj->kset); 128 spin_lock(&kobj->kset->list_lock); 129 list_add_tail(&kobj->entry, &kobj->kset->list); 130 spin_unlock(&kobj->kset->list_lock); 133 /* remove the kobject from its kset's list */ 136 if (!kobj->kset) 139 spin_lock(&kobj->kset 747 kset_find_obj(struct kset *kset, const char *name) argument 765 struct kset *kset = container_of(kobj, struct kset, kobj); local 795 struct kset *kset; local 838 struct kset *kset; local [all...] |
H A D | kobject_uevent.c | 137 struct kset *kset; local 149 /* search the kset we belong to */ 151 while (!top_kobj->kset && top_kobj->parent) 154 if (!top_kobj->kset) { 156 "without kset!\n", kobject_name(kobj), kobj, 161 kset = top_kobj->kset; 162 uevent_ops = kset->uevent_ops; 173 if (!uevent_ops->filter(kset, kob [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/fs/ocfs2/cluster/ |
H A D | masklog.c | 150 static struct kset mlog_kset = { 154 int mlog_sys_init(struct kset *o2cb_kset) 165 mlog_kset.kobj.kset = o2cb_kset;
|
H A D | sys.c | 55 static struct kset *o2cb_kset;
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/fs/ocfs2/cluster/ |
H A D | masklog.c | 150 static struct kset mlog_kset = { 154 int mlog_sys_init(struct kset *o2cb_kset) 165 mlog_kset.kobj.kset = o2cb_kset;
|
H A D | sys.c | 55 static struct kset *o2cb_kset;
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/firmware/ |
H A D | memmap.c | 132 static struct kset *mmap_kset; 140 entry->kobj.kset = mmap_kset;
|