/DragonOS/kernel/crates/intertrait/macros/src/ |
H A D | args.rs | 13 fn from(ident: &Ident) -> Result<Self> { in from() 14 match ident.to_string().as_str() { in from() 18 Err(Error::new_spanned(ident, msg)) in from() 41 for ident in Punctuated::<Ident, Token![,]>::parse_terminated(&content)? { in parse() 42 if !flags.insert(Flag::from(&ident)?) { in parse() 43 let msg = format!("Duplicated flag: {}", ident); in parse() 44 return Err(Error::new_spanned(ident, msg)); in parse()
|
H A D | item_type.rs | 13 ref ident, in process() 24 .flat_map(|t| generate_caster(ident, &t, flags.contains(&Flag::Sync))) in process()
|
H A D | item_impl.rs | 51 ident: assoc_ty.ident.to_owned(), in fully_bound_trait()
|
/DragonOS/kernel/crates/kcmdline_macros/src/ |
H A D | lib.rs | 15 ($varname:ident, $name:ident, $default_bool:expr, $inv:expr) => { 37 ($varname:ident, $name:ident, $default_str:expr) => { 58 ($varname:ident, $name:ident, $default_str:expr) => {
|
/DragonOS/kernel/crates/unified-init/src/ |
H A D | lib.rs | 38 ($name:ident) => { 52 ($name:ident) => { 66 ($initializer_slice:ident) => {
|
/DragonOS/kernel/src/libs/ |
H A D | int_like.rs | 29 ($new_type_name:ident, $backing_type: ident) => { 55 …($new_type_name:ident, $new_atomic_type_name: ident, $backing_type:ident, $backing_atomic_type:ide…
|
H A D | volatile.rs | 149 ($nonnull:expr, $field:ident) => { 170 ($nonnull:expr, $field:ident, $value:expr) => {
|
H A D | elf.rs | 404 let ident = elf::file::parse_ident::<AnyEndian>(ident_buf)?; in parse_ehdr() localVariable 407 let tail_end = match ident.1 { in parse_ehdr() 413 let ehdr: FileHeader<_> = FileHeader::parse_tail(ident, tail_buf)?; in parse_ehdr()
|
/DragonOS/kernel/crates/unified-init/macros/src/ |
H A D | lib.rs | 62 generate_unified_initializer(&function, target_slice, function.sig.ident.to_string())?; in do_unified_init() 98 if type_path.path.segments.last().unwrap().ident == "Result" { in check_function_signature() 131 if type_path.path.segments.last().unwrap().ident == "SystemError" { in check_function_signature() 174 let initializer_name_ident = syn::Ident::new(&initializer_name, function.sig.ident.span()); in generate_unified_initializer() 176 let function_ident = &function.sig.ident; in generate_unified_initializer() 203 let ident = input.parse::<syn::Ident>()?; in parse() localVariable 206 let initializer = syn::Path::from(ident); in parse()
|
/DragonOS/kernel/crates/rbpf/src/ |
H A D | asm_parser.rs | 46 fn ident<I>() -> impl Parser<I, Output = String> in ident() function 98 (ident().skip(spaces()), operands, spaces()).map(|t| Instruction { in instruction() 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()
|
H A D | jit.rs | 80 ( $mem:ident, $data:tt, $t:ty ) => {{
|
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/ |
H A D | seg.rs | 44 ($struct_name: ident) => {
|
/DragonOS/kernel/src/namespaces/ |
H A D | mod.rs | 83 ($ptr:expr, $struct:path, $field:ident) => {
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | mod.rs | 955 ($name:ident) => { 967 ($initializer_slice:ident,$filesystem:ident,$raw_data : ident) => {
|
/DragonOS/kernel/src/driver/acpi/ |
H A D | sysfs.rs | 272 ($name:ident) => { in read() 290 ($name: ident, $tables: expr) => { in read()
|
/DragonOS/kernel/crates/rbpf/tests/ |
H A D | cranelift.rs | 14 ($name:ident, $prog:expr, $expected:expr) => { 23 ($name:ident, $prog:expr, $mem:expr, $expected:expr) => {
|
/DragonOS/kernel/src/bpf/helper/ |
H A D | mod.rs | 16 ($name:ident) => {
|