12 #include <linux/module.h>
25 for (i = 0, attr = grp->
attrs; *attr; i++, attr++)
35 for (i = 0, attr = grp->
attrs; *attr && !error; i++, attr++) {
49 (*attr)->mode | mode);
54 remove_files(dir_sd, kobj, grp);
59 static int internal_create_group(
struct kobject *kobj,
int update,
65 BUG_ON(!kobj || (!update && !kobj->
sd));
71 WARN(1,
"sysfs: attrs not set by subsystem for group: %s/%s\n",
82 error = create_files(sd, kobj, grp, update);
104 return internal_create_group(kobj, 0, grp);
127 return internal_create_group(kobj, 1, grp);
142 "kobject '%s'\n", grp, kobject_name(kobj));
148 remove_files(sd, kobj, grp);
176 for ((i = 0, attr = grp->
attrs); *attr && !error; (++i, ++attr))
201 for (attr = grp->
attrs; *attr; ++attr)