Lines Matching defs:boot_kobj
43 struct iscsi_boot_kobj *boot_kobj =
53 if (boot_kobj->show)
54 ret = boot_kobj->show(boot_kobj->data, boot_attr->type, str);
64 struct iscsi_boot_kobj *boot_kobj =
67 kfree(boot_kobj->data);
68 kfree(boot_kobj);
117 struct iscsi_boot_kobj *boot_kobj =
121 return boot_kobj->is_visible(boot_kobj->data,
124 return boot_kobj->is_visible(boot_kobj->data,
127 return boot_kobj->is_visible(boot_kobj->data,
130 return boot_kobj->is_visible(boot_kobj->data,
133 return boot_kobj->is_visible(boot_kobj->data,
136 return boot_kobj->is_visible(boot_kobj->data,
139 return boot_kobj->is_visible(boot_kobj->data,
142 return boot_kobj->is_visible(boot_kobj->data,
145 return boot_kobj->is_visible(boot_kobj->data,
148 return boot_kobj->is_visible(boot_kobj->data,
151 return boot_kobj->is_visible(boot_kobj->data,
154 return boot_kobj->is_visible(boot_kobj->data,
198 struct iscsi_boot_kobj *boot_kobj =
202 return boot_kobj->is_visible(boot_kobj->data,
205 return boot_kobj->is_visible(boot_kobj->data,
208 return boot_kobj->is_visible(boot_kobj->data,
211 return boot_kobj->is_visible(boot_kobj->data,
214 return boot_kobj->is_visible(boot_kobj->data,
217 return boot_kobj->is_visible(boot_kobj->data,
220 return boot_kobj->is_visible(boot_kobj->data,
223 return boot_kobj->is_visible(boot_kobj->data,
226 return boot_kobj->is_visible(boot_kobj->data,
229 return boot_kobj->is_visible(boot_kobj->data,
232 return boot_kobj->is_visible(boot_kobj->data,
235 return boot_kobj->is_visible(boot_kobj->data,
270 struct iscsi_boot_kobj *boot_kobj =
274 return boot_kobj->is_visible(boot_kobj->data,
277 return boot_kobj->is_visible(boot_kobj->data,
280 return boot_kobj->is_visible(boot_kobj->data,
283 return boot_kobj->is_visible(boot_kobj->data,
286 return boot_kobj->is_visible(boot_kobj->data,
289 return boot_kobj->is_visible(boot_kobj->data,
292 return boot_kobj->is_visible(boot_kobj->data,
310 struct iscsi_boot_kobj *boot_kobj;
312 boot_kobj = kzalloc(sizeof(*boot_kobj), GFP_KERNEL);
313 if (!boot_kobj)
315 INIT_LIST_HEAD(&boot_kobj->list);
317 boot_kobj->kobj.kset = boot_kset->kset;
318 if (kobject_init_and_add(&boot_kobj->kobj, &iscsi_boot_ktype,
320 kfree(boot_kobj);
323 boot_kobj->data = data;
324 boot_kobj->show = show;
325 boot_kobj->is_visible = is_visible;
327 if (sysfs_create_group(&boot_kobj->kobj, attr_group)) {
334 boot_kobj->data = NULL;
335 kobject_put(&boot_kobj->kobj);
338 boot_kobj->attr_group = attr_group;
340 kobject_uevent(&boot_kobj->kobj, KOBJ_ADD);
342 list_add_tail(&boot_kobj->list, &boot_kset->kobj_list);
343 return boot_kobj;
346 static void iscsi_boot_remove_kobj(struct iscsi_boot_kobj *boot_kobj)
348 list_del(&boot_kobj->list);
349 sysfs_remove_group(&boot_kobj->kobj, boot_kobj->attr_group);
350 kobject_put(&boot_kobj->kobj);
473 struct iscsi_boot_kobj *boot_kobj, *tmp_kobj;
475 list_for_each_entry_safe(boot_kobj, tmp_kobj,
477 iscsi_boot_remove_kobj(boot_kobj);