/DragonOS/kernel/crates/rbpf/src/ |
H A D | disassembler.rs | 19 fn alu_imm_str(name: &str, insn: &ebpf::Insn) -> String { in alu_imm_str() 24 fn alu_reg_str(name: &str, insn: &ebpf::Insn) -> String { in alu_reg_str() 29 fn byteswap_str(name: &str, insn: &ebpf::Insn) -> String { in byteswap_str() 38 fn ld_st_imm_str(name: &str, insn: &ebpf::Insn) -> String { in ld_st_imm_str() 52 fn ld_reg_str(name: &str, insn: &ebpf::Insn) -> String { in ld_reg_str() 66 fn st_reg_str(name: &str, insn: &ebpf::Insn) -> String { in st_reg_str() 80 fn ldabs_str(name: &str, insn: &ebpf::Insn) -> String { in ldabs_str() 85 fn ldind_str(name: &str, insn: &ebpf::Insn) -> String { in ldind_str() 90 fn jmp_imm_str(name: &str, insn: &ebpf::Insn) -> String { in jmp_imm_str() 104 fn jmp_reg_str(name: &str, insn: &ebpf::Insn) -> String { in jmp_reg_str() [all …]
|
H A D | asm_parser.rs | 41 pub name: String, field 99 name: t.0, in instruction() 187 name: "exit".to_string(), in test_instruction() 198 name: "call".to_string(), in test_instruction() 209 name: "addi".to_string(), in test_instruction() 220 name: "ldxb".to_string(), in test_instruction() 231 name: "lsh".to_string(), in test_instruction() 242 name: "jne".to_string(), in test_instruction() 258 name: "jne".to_string(), in test_instruction() 283 name: "exit".to_string(), in test_exit() [all …]
|
/DragonOS/kernel/crates/unified-init/src/ |
H A D | lib.rs | 11 name: &'static str, field 16 name: &'static str, in new() 19 UnifiedInitializer { function, name } in new() 28 pub const fn name(&self) -> &'static str { in name() method 29 self.name in name() 38 ($name:ident) => { 40 static $name: [::unified_init::UnifiedInitializer] = [..]; 52 ($name:ident) => { 54 pub static $name: [::unified_init::UnifiedInitializer] = [..]; 69 log::error!("Failed to call initializer {}: {:?}", initializer.name(), e);
|
/DragonOS/docs/kernel/configuration/ |
H A D | config.md | 13 name = "init" 19 name = "mm" 27 - **name:** 模块名 39 name = "mm" 43 name = "allocator" 49 name = "mm_debug" 56 - **name:** 当前模块名称 60 - **name:** feature名 73 name = "allocator" 77 name = "allocator_debug" [all …]
|
/DragonOS/tools/debugging/logmonitor/src/backend/ |
H A D | loader.rs | 27 let name = elf.strtab.get_at(sym.st_name).unwrap_or(""); in load() localVariable 28 result.add_symbol(sym.clone(), name.to_string()); in load() 58 pub fn add_symbol(&mut self, sym: Sym, name: String) { in add_symbol() 59 self.sym_collection.add_symbol(sym, name); in add_symbol() 75 pub fn add_symbol(&mut self, sym: Sym, name: String) { in add_symbol() 76 self.symbols.push(Symbol::new(sym, name)); in add_symbol() 84 pub fn find_by_name(&self, name: &str) -> Option<&Symbol> { in find_by_name() 85 self.symbols.iter().find(|sym| sym.name() == name) in find_by_name() 92 name: String, field 96 pub fn new(sym: Sym, name: String) -> Self { in new() [all …]
|
/DragonOS/user/apps/user-manage/ |
H A D | Cargo.toml | 2 name = "user_manage_tool" 7 name = "useradd" 11 name = "userdel" 15 name = "usermod" 19 name = "passwd" 23 name = "groupadd" 27 name = "groupdel" 31 name = "groupmod"
|
/DragonOS/build-scripts/kernel_build/src/kconfig/ |
H A D | mod.rs | 41 cfg_content.push_str(&format!("{} = y\n", f.name())); in make_compile_cfg() 43 cfg_content.push_str(&format!("{} = n\n", f.name())); in make_compile_cfg() 62 println!("{}", module.name()); in dfs() 115 let name = f.get("name").unwrap().as_str().unwrap().to_string(); in parse_d_config() localVariable 117 r.push(Feature::new(name, enable)); in parse_d_config() 137 let name = module.get("name").unwrap().as_str().unwrap().to_string(); in include() localVariable 140 r.push(Module::new(name, path, enable)); in include() 150 name: String, field 158 pub fn new(name: String, path: PathBuf, enable: bool) -> Module { in new() 159 Module { name, path, enable } in new() [all …]
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | entry.rs | 501 name: &str, in find_entry() 506 LongDirEntry::validate_long_name(name)?; in find_entry() 509 if e.eq_name(name) { in find_entry() 532 pub fn open_file(&self, name: &str, fs: Arc<FATFileSystem>) -> Result<FATFile, SystemError> { in open_file() 533 let f: FATFile = self.find_entry(name, Some(false), None, fs)?.to_file()?; in open_file() 538 pub fn open_dir(&self, name: &str, fs: Arc<FATFileSystem>) -> Result<FATDir, SystemError> { in open_dir() 539 let d: FATDir = self.find_entry(name, Some(true), None, fs)?.to_dir()?; in open_dir() 547 pub fn create_file(&self, name: &str, fs: &Arc<FATFileSystem>) -> Result<FATFile, SystemError> { in create_file() 549 self.check_existence(name, Some(false), fs.clone()); in create_file() 562 LongDirEntry::validate_long_name(name)?; in create_file() [all …]
|
H A D | utils.rs | 20 pub(super) fn to_search_name(name: &str) -> String { in to_search_name() 21 name.to_ascii_uppercase() in to_search_name() 26 pub(super) fn to_search_name_string(mut name: String) -> String { in to_search_name_string() 27 name.make_ascii_uppercase(); in to_search_name_string() 28 name in to_search_name_string()
|
/DragonOS/docs/kernel/boot/ |
H A D | cmdline.md | 36 KV类型的参数在命令行中表现为`name=value`,`value`按照逗号分隔。内核模块可提供参数的默认值。 58 kernel_cmdline_param_arg!(varname, name, default_bool, inv); 61 - `name`:参数的名称 68 kernel_cmdline_param_kv!(varname, name, default_str); 72 - `name`:参数的名称 78 kernel_cmdline_param_early_kv!(varname, name, default_str); 82 - `name`:参数的名称
|
/DragonOS/kernel/src/filesystem/sysfs/ |
H A D | symlink.rs | 27 name: String, in create_link() 29 return self.do_create_link(kobj, target, name, true); in create_link() 49 name: String, in do_create_link() 60 return self.do_create_link_sd(&parent, target, name, warn); in do_create_link() 68 name: String, in do_create_link_sd() 77 let kn = inode.add_link(name.clone(), &target_inode, target_abs_path); in do_create_link_sd() 83 self.warn_duplicate(inode, &name); in do_create_link_sd() 100 name: String, in create_link_sd() 102 return self.do_create_link_sd(inode, target, name, true); in create_link_sd()
|
H A D | group.rs | 43 group.name().unwrap_or("") in do_create_groups() 68 if group.name().is_some() { in do_create_group() 72 .find(group.name().unwrap()) in do_create_group() 82 group.name().unwrap().to_string(), in do_create_group() 89 self.warn_duplicate(&kobj_inode, group.name().unwrap()); in do_create_group() 99 if group.name().is_some() { in do_create_group() 136 if let Some(name) = group.name() { in remove_group() 138 .find(name) in remove_group() 150 if group.name().is_some() { in remove_group() 180 parent.remove(attr.name()).ok(); in group_create_files() [all …]
|
/DragonOS/kernel/src/filesystem/devfs/ |
H A D | mod.rs | 55 fn name(&self) -> &str { in name() method 123 name: &str, in register_device() 145 dev_char_inode.add_dev(name, device.clone())?; in register_device() 148 if name.starts_with("tty") && name.len() > 3 { in register_device() 149 dev_root_inode.add_dev(name, device.clone())?; in register_device() 152 if name == "ptmx" { in register_device() 153 dev_root_inode.add_dev(name, device.clone())?; in register_device() 172 dev_block_inode.add_dev(name, device.clone())?; in register_device() 177 .add_dev(name, device.clone()) in register_device() 182 .add_dev(name, device.clone()) in register_device() [all …]
|
/DragonOS/kernel/src/exception/ |
H A D | sysfs.rs | 61 fn name(&self) -> Option<&str> { in name() method 139 fn name(&self) -> &str { in name() method 158 let name = chip.name(); in show() localVariable 159 let len = core::cmp::min(name.len() + 1, buf.len()); in show() 160 let name = format!("{}\n", name); in show() localVariable 161 buf[..len].copy_from_slice(name.as_bytes()); in show() 170 fn name(&self) -> &str { in name() method 196 fn name(&self) -> &str { in name() method 227 fn name(&self) -> &str { in name() method 253 fn name(&self) -> &str { in name() method [all …]
|
/DragonOS/.github/ |
H A D | issue-checker.yml | 6 - name: skip all 9 - name: remove all 12 - name: skip ambiguous 15 - name: remove ambiguous 19 - name: enhance 27 - name: bug-fix 35 - name: doc 43 - name: test 51 - name: pr-ambiguous
|
/DragonOS/kernel/src/init/ |
H A D | cmdline.rs | 39 name: &'static str, field 48 pub const fn new(name: &'static str, ty: KCmdlineParamType) -> Self { in new() 50 name, in new() 76 name: self.name, in build_early_kv() 90 name: self.name, in build() 97 name: self.name, in build() 116 pub fn name(&self) -> &str { in name() method 118 KernelCmdlineParameter::Arg(v) => v.name, in name() 119 KernelCmdlineParameter::KV(v) => v.name, in name() 120 KernelCmdlineParameter::EarlyKV(v) => v.name, in name() [all …]
|
/DragonOS/kernel/src/driver/input/serio/ |
H A D | subsys.rs | 44 fn name(&self) -> String { in name() method 49 return self.name(); in dev_name() 65 device.name() in probe() 73 device.name() in probe() 115 if drv_id_table.name().eq(&pdev.name()) { in match_device() 121 return Ok(device.name().eq(&driver.name())); in match_device() 129 fn name(&self) -> Option<&str> { in name() method
|
/DragonOS/kernel/src/filesystem/ramfs/ |
H A D | mod.rs | 70 name: DName, field 98 name: Default::default(), in new() 120 fn name(&self) -> &str { in name() method 303 name: &str, in create_with_data() 308 let name = DName::from(name); in create_with_data() localVariable 316 if inode.children.contains_key(&name) { in create_with_data() 344 name: name.clone(), in create_with_data() 351 inode.children.insert(name, result.clone()); in create_with_data() 356 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link() 360 let name = DName::from(name); in link() localVariable [all …]
|
/DragonOS/kernel/crates/kcmdline_macros/src/ |
H A D | lib.rs | 15 ($varname:ident, $name:ident, $default_bool:expr, $inv:expr) => { 19 stringify!($name), 37 ($varname:ident, $name:ident, $default_str:expr) => { 41 stringify!($name), 58 ($varname:ident, $name:ident, $default_str:expr) => { 64 stringify!($name),
|
/DragonOS/kernel/src/driver/base/platform/ |
H A D | subsys.rs | 45 fn name(&self) -> String { in name() method 50 return self.name(); in dev_name() 64 …tformBus::probe() failed: device.driver() is not a PlatformDriver. Device: '{:?}'", device.name()); in probe() 71 device.name() in probe() 138 if drv_id_table.name().eq(&pdev.name()) { in match_device() 144 return Ok(device.name().eq(&driver.name())); in match_device() 157 fn name(&self) -> Option<&str> { in name() method
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | dd.rs | 69 warn!("do_device_attach: dev: '{}'", dev.name()); in do_device_attach() 78 dev.name() in do_device_attach() 90 debug!("do_device_attach: device '{}' is not bound.", dev.name()); in do_device_attach() 122 dev.name() in do_device_attach() 160 data.dev.name(), in do_device_attach_driver() 222 dev.name(), in device_bind_driver() 312 driver.name() in do_driver_attach() 408 device.name(), in really_probe() 419 device.name(), in really_probe() 434 device.name(), in really_probe() [all …]
|
/DragonOS/kernel/src/driver/base/ |
H A D | kset.rs | 34 self.inner.read().name.hash(state); in hash() 47 pub fn new(name: String) -> Arc<Self> { in new() 50 inner: RwLock::new(InnerKSet::new(name)), in new() 74 name: String, in new_and_add() 78 let kset = KSet::new(name); in new_and_add() 194 fn name(&self) -> String { in name() method 195 return self.inner.read().name.clone(); in name() 198 fn set_name(&self, name: String) { in set_name() 199 self.inner.write().name = name; in set_name() 222 name: String, field [all …]
|
/DragonOS/kernel/src/driver/net/ |
H A D | sysfs.rs | 46 fn name(&self) -> Option<&str> { in name() method 93 fn name(&self) -> &str { in name() method 120 fn name(&self) -> &str { in name() method 142 fn name(&self) -> &str { in name() method 164 fn name(&self) -> &str { in name() method 190 fn name(&self) -> &str { in name() method 212 fn name(&self) -> &str { in name() method 234 fn name(&self) -> &str { in name() method 261 fn name(&self) -> &str { in name() method 290 fn name(&self) -> &str { in name() method [all …]
|
/DragonOS/.github/workflows/ |
H A D | publish-dragonos-docker-image.yml | 1 name: Publish Docker images 15 - name: Set up Docker Buildx 18 - name: Login to Docker Hub 26 - name: Fetch versions in the repo 32 - name: Build and push docker image
|
/DragonOS/kernel/src/filesystem/overlayfs/ |
H A D | mod.rs | 136 fn name(&self) -> &str { in name() method 218 pub fn create_whiteout(&self, name: &str) -> Result<(), SystemError> { in create_whiteout() 222 upper_inode.mknod(name, whiteout_mode, WHITEOUT_DEV)?; in create_whiteout() 229 .create(name, FileType::CharDevice, whiteout_mode)?; in create_whiteout() 242 fn has_whiteout(&self, name: &str) -> bool { in has_whiteout() 245 if let Ok(inode) = upper_inode.find(name) { in has_whiteout() 331 name: &str, in mkdir() 335 upper_inode.mkdir(name, mode) in mkdir() 341 fn rmdir(&self, name: &str) -> Result<(), SystemError> { in rmdir() 344 upper_inode.rmdir(name)?; in rmdir() [all …]
|