Home
last modified time | relevance | path

Searched refs:groups (Results 1 – 8 of 8) sorted by relevance

/DragonOS/kernel/src/filesystem/sysfs/
H A Dgroup.rs24 groups: &[&'static dyn AttributeGroup], in create_groups()
26 return self.do_create_groups(kobj, groups, false); in create_groups()
32 groups: &[&'static dyn AttributeGroup], in do_create_groups()
35 for i in 0..groups.len() { in do_create_groups()
36 let group = groups[i]; in do_create_groups()
46 self.remove_group(kobj, groups[j]).ok(); in do_create_groups()
111 groups: &'static [&'static dyn AttributeGroup], in remove_groups()
113 for group in groups.iter() { in remove_groups()
/DragonOS/kernel/src/driver/base/device/
H A Ddriver.rs103 fn groups(&self) -> &'static [&'static dyn AttributeGroup] { in groups() method
216 self.add_groups(&driver, driver.groups()) in register()
229 self.remove_groups(driver, driver.groups()); in unregister()
271 groups: &'static [&dyn AttributeGroup], in add_groups()
274 return sysfs_instance().create_groups(&kobj, groups); in add_groups()
277 pub fn remove_groups(&self, driver: &Arc<dyn Driver>, groups: &'static [&dyn AttributeGroup]) { in remove_groups()
279 sysfs_instance().remove_groups(&kobj, groups); in remove_groups()
H A Dbus.rs423 groups: &[&'static dyn AttributeGroup], in add_groups()
426 return sysfs_instance().create_groups(&bus_kobj, groups); in add_groups()
/DragonOS/kernel/src/driver/base/
H A Dkobject.rs231 let groups = ktype.attribute_groups(); in create_dir() localVariable
232 if let Some(groups) = groups { in create_dir()
233 let r = sysfs_instance().create_groups(&kobj, groups); in create_dir()
248 if let Some(groups) = ktype.attribute_groups() { in remove_kobj()
249 sysfs_instance().remove_groups(&kobj, groups); in remove_kobj()
/DragonOS/user/apps/user-manage/src/check/
H A Dcheck.rs285 groups: info.groups.clone(), in check()
316 info.groups = Some(arg.split(",").map(|s| s.to_string()).collect()); in parse_options()
539 groups: Some(vec![info.groupname.clone()]), in check()
697 groups: Option<Vec<String>>, field
787 if let Some(groups) = group_field.groups.clone() { in scan_group()
788 set2.extend(groups.into_iter()); in scan_group()
805 if should_exist && group_field.groups.is_none() { in scan_group()
829 if group_field.groups.is_some() { in scan_group()
H A Dinfo.rs38 pub groups: Option<Vec<String>>, field
/DragonOS/user/apps/user-manage/src/parser/
H A Dparser.rs47 let groups = &args[idx]; in parse() localVariable
48 options.insert(option, groups.clone()); in parse()
/DragonOS/user/apps/user-manage/src/executor/
H A Dexecutor.rs394 if let Some(groups) = &info.groups { in update_group_file()
395 if groups.contains(&fields[0].to_string()) && !users.contains(&name.as_str()) { in update_group_file()
463 if let Some(groups) = &info.groups { in update_gshadow_file()
464 if groups.contains(&fields[0].to_string()) && !users.contains(&name.as_str()) { in update_gshadow_file()