Lines Matching refs:kobj
91 struct kobject *kobj = data; in kobj_bcast_filter() local
94 ops = kobj_ns_ops(kobj); in kobj_bcast_filter()
97 ns = kobj->ktype->namespace(kobj); in kobj_bcast_filter()
106 static int kobj_usermode_filter(struct kobject *kobj) in kobj_usermode_filter() argument
110 ops = kobj_ns_ops(kobj); in kobj_usermode_filter()
113 ns = kobj->ktype->namespace(kobj); in kobj_usermode_filter()
131 int kobject_uevent_env(struct kobject *kobj, enum kobject_action action, in kobject_uevent_env() argument
148 kobject_name(kobj), kobj, __func__); in kobject_uevent_env()
151 top_kobj = kobj; in kobject_uevent_env()
157 "without kset!\n", kobject_name(kobj), kobj, in kobject_uevent_env()
166 if (kobj->uevent_suppress) { in kobject_uevent_env()
169 kobject_name(kobj), kobj, __func__); in kobject_uevent_env()
174 if (!uevent_ops->filter(kset, kobj)) { in kobject_uevent_env()
177 kobject_name(kobj), kobj, __func__); in kobject_uevent_env()
183 subsystem = uevent_ops->name(kset, kobj); in kobject_uevent_env()
185 subsystem = kobject_name(&kset->kobj); in kobject_uevent_env()
188 "event to drop!\n", kobject_name(kobj), kobj, in kobject_uevent_env()
199 devpath = kobject_get_path(kobj, GFP_KERNEL); in kobject_uevent_env()
227 retval = uevent_ops->uevent(kset, kobj, env); in kobject_uevent_env()
230 "%d\n", kobject_name(kobj), kobj, in kobject_uevent_env()
243 kobj->state_add_uevent_sent = 1; in kobject_uevent_env()
245 kobj->state_remove_uevent_sent = 1; in kobject_uevent_env()
286 kobj); in kobject_uevent_env()
297 if (uevent_helper[0] && !kobj_usermode_filter(kobj)) { in kobject_uevent_env()
331 int kobject_uevent(struct kobject *kobj, enum kobject_action action) in kobject_uevent() argument
333 return kobject_uevent_env(kobj, action, NULL); in kobject_uevent()