/DragonOS/kernel/crates/rbpf/src/ |
H A D | asm_parser.rs | 66 let dec = many1(digit()).map(|x: String| x.parse::<i64>().unwrap()); in integer() 77 .map(|x: String| x.parse::<i64>().unwrap()) in register() 107 pub fn parse(input: &str) -> Result<Vec<Instruction>, String> { in parse() function 119 match with.parse(position::Stream::new(input)) { in parse() 132 use super::{ident, instruction, integer, operand, parse, register, Instruction, Operand}; 138 assert_eq!(ident().parse("nop"), Ok(("nop".to_string(), ""))); in test_ident() 139 assert_eq!(ident().parse("add32"), Ok(("add32".to_string(), ""))); in test_ident() 140 assert_eq!(ident().parse("add32*"), Ok(("add32".to_string(), "*"))); in test_ident() 145 assert_eq!(integer().parse("0"), Ok((0, ""))); in test_integer() 146 assert_eq!(integer().parse("42"), Ok((42, ""))); in test_integer() [all …]
|
H A D | assembler.rs | 20 parse, Instruction, Operand, 270 let parsed = (parse(src))?; in assemble()
|
/DragonOS/kernel/crates/intertrait/macros/src/ |
H A D | args.rs | 3 use syn::parse::{Parse, ParseStream, Result}; 30 fn parse(input: ParseStream) -> Result<Self> { in parse() method 67 fn parse(input: ParseStream) -> Result<Self> { in parse() method 68 let ty: Type = input.parse()?; in parse() 69 input.parse::<Token![=>]>()?; in parse() 73 targets: input.parse()?, in parse()
|
H A D | lib.rs | 5 use syn::{parse, parse_macro_input, DeriveInput, ItemImpl}; 67 match parse::<Targets>(args) { in cast_to()
|
/DragonOS/kernel/crates/unified-init/macros/src/ |
H A D | lib.rs | 8 parse::{self, Parse, ParseStream}, 51 let attr_arg = syn::parse::<UnifiedInitArg>(args)?; in do_unified_init() 53 let function = syn::parse::<ItemFn>(input)?; in do_unified_init() 192 fn parse(input: ParseStream) -> parse::Result<Self> { in parse() method 197 return Err(parse::Error::new( in parse() 203 let ident = input.parse::<syn::Ident>()?; in parse() 212 return Err(parse::Error::new( in parse() 220 return Err(parse::Error::new( in parse()
|
/DragonOS/user/apps/user-manage/src/parser/ |
H A D | parser.rs | 16 pub fn parse(args: Vec<String>) -> UserCommand { in parse() method 81 pub fn parse(args: Vec<String>) -> PasswdCommand { in parse() method 101 pub fn parse(args: Vec<String>) -> GroupCommand { in parse() method
|
/DragonOS/user/apps/user-manage/src/cmd/ |
H A D | passwd.rs | 20 let cmd = PasswdParser::parse(args); in main()
|
H A D | useradd.rs | 37 let cmd = UserParser::parse(args); in main()
|
H A D | userdel.rs | 37 let cmd = UserParser::parse(args); in main()
|
H A D | groupadd.rs | 37 let cmd = GroupParser::parse(args); in main()
|
H A D | groupdel.rs | 37 let cmd = GroupParser::parse(args); in main()
|
H A D | groupmod.rs | 37 let cmd = GroupParser::parse(args); in main()
|
H A D | usermod.rs | 37 let cmd = UserParser::parse(args); in main()
|
/DragonOS/user/apps/test_ebpf/syscall_ebpf/xtask/src/ |
H A D | main.rs | 23 let opts = Options::parse(); in main()
|
/DragonOS/docs/ |
H A D | Makefile | 15 export CURRENT_GIT_COMMIT_HASH := $(shell git rev-parse --short HEAD)
|
/DragonOS/kernel/src/libs/ |
H A D | keyboard_parser.rs | 42 pub fn parse(&mut self, scancode: u8) -> TypeOneFSMState { in parse() method 43 self.current_state = self.current_state.parse(scancode, &mut self.status); in parse() 66 fn parse(&self, scancode: u8, scancode_status: &mut ScanCodeStatus) -> TypeOneFSMState { in parse() method
|
H A D | elf.rs | 455 let shdr0 = <elf::section::SectionHeader as elf::parse::ParseAt>::parse_at( in parse_segments() 465 let entsize = <ProgramHeader as elf::parse::ParseAt>::validate_entsize( in parse_segments()
|
/DragonOS/tools/debugging/logmonitor/src/backend/ |
H A D | loader.rs | 17 let elf = goblin::elf::Elf::parse(&kernel_bytes).map_err(|e| { in load()
|
/DragonOS/tools/debugging/logmonitor/src/ |
H A D | main.rs | 16 let command_line_args = command::CommandLineArgs::parse(); in main()
|
/DragonOS/kernel/src/driver/base/block/ |
H A D | manager.rs | 199 partno = path[last_digit..].parse().ok()?; in path2devname()
|
/DragonOS/kernel/src/driver/keyboard/ |
H A D | ps2_keyboard.rs | 196 fsm.parse(input); in handle()
|
/DragonOS/kernel/src/filesystem/devpts/ |
H A D | mod.rs | 245 DeviceNumber::new(Major::UNIX98_PTY_SLAVE_MAJOR, name.parse::<u32>().unwrap()); in create_with_data()
|
/DragonOS/user/apps/user-manage/src/check/ |
H A D | check.rs | 715 let r = uid.parse::<u32>(); in scan_passwd() 796 let r = gid.parse::<u32>(); in scan_group()
|