Home
last modified time | relevance | path

Searched refs:kobj (Results 1 – 2 of 2) sorted by relevance

/lib/
Dkobject.c30 const void *kobject_namespace(struct kobject *kobj) in kobject_namespace() argument
32 const struct kobj_ns_type_operations *ns_ops = kobj_ns_ops(kobj); in kobject_namespace()
37 return kobj->ktype->namespace(kobj); in kobject_namespace()
49 static int populate_dir(struct kobject *kobj) in populate_dir() argument
51 struct kobj_type *t = get_ktype(kobj); in populate_dir()
58 error = sysfs_create_file(kobj, attr); in populate_dir()
66 static int create_dir(struct kobject *kobj) in create_dir() argument
71 error = sysfs_create_dir_ns(kobj, kobject_namespace(kobj)); in create_dir()
75 error = populate_dir(kobj); in create_dir()
77 sysfs_remove_dir(kobj); in create_dir()
[all …]
Dkobject_uevent.c92 struct kobject *kobj = data, *ksobj; in kobj_bcast_filter() local
95 ops = kobj_ns_ops(kobj); in kobj_bcast_filter()
96 if (!ops && kobj->kset) { in kobj_bcast_filter()
97 ksobj = &kobj->kset->kobj; in kobj_bcast_filter()
102 if (ops && ops->netlink_ns && kobj->ktype->namespace) { in kobj_bcast_filter()
104 ns = kobj->ktype->namespace(kobj); in kobj_bcast_filter()
114 static int kobj_usermode_filter(struct kobject *kobj) in kobj_usermode_filter() argument
118 ops = kobj_ns_ops(kobj); in kobj_usermode_filter()
121 ns = kobj->ktype->namespace(kobj); in kobj_usermode_filter()
165 int kobject_uevent_env(struct kobject *kobj, enum kobject_action action, in kobject_uevent_env() argument
[all …]