Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/sysfs.h
Show First 20 Lines • Show All 240 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static inline void | static inline void | ||||
sysfs_unmerge_group(struct kobject *kobj, const struct attribute_group *grp) | sysfs_unmerge_group(struct kobject *kobj, const struct attribute_group *grp) | ||||
{ | { | ||||
struct attribute **attr; | struct attribute **attr; | ||||
struct sysctl_oid *oidp; | struct sysctl_oid *oidp; | ||||
SLIST_FOREACH(oidp, SYSCTL_CHILDREN(kobj->oidp), oid_link) { | RB_FOREACH(oidp, sysctl_oid_list, SYSCTL_CHILDREN(kobj->oidp)) { | ||||
if (strcmp(oidp->oid_name, grp->name) != 0) | if (strcmp(oidp->oid_name, grp->name) != 0) | ||||
continue; | continue; | ||||
for (attr = grp->attrs; *attr != NULL; attr++) { | for (attr = grp->attrs; *attr != NULL; attr++) { | ||||
sysctl_remove_name(oidp, (*attr)->name, 1, 1); | sysctl_remove_name(oidp, (*attr)->name, 1, 1); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |