Home
last modified time | relevance | path

Searched refs:ident (Results 1 – 17 of 17) sorted by relevance

/DragonOS/kernel/crates/intertrait/macros/src/
H A Dargs.rs13 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 Ditem_type.rs13 ref ident, in process()
24 .flat_map(|t| generate_caster(ident, &t, flags.contains(&Flag::Sync))) in process()
H A Ditem_impl.rs51 ident: assoc_ty.ident.to_owned(), in fully_bound_trait()
/DragonOS/kernel/crates/kcmdline_macros/src/
H A Dlib.rs15 ($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 Dlib.rs38 ($name:ident) => {
52 ($name:ident) => {
66 ($initializer_slice:ident) => {
/DragonOS/kernel/src/libs/
H A Dint_like.rs29 ($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 Dvolatile.rs149 ($nonnull:expr, $field:ident) => {
170 ($nonnull:expr, $field:ident, $value:expr) => {
H A Delf.rs404 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 Dlib.rs62 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 Dasm_parser.rs46 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 Djit.rs80 ( $mem:ident, $data:tt, $t:ty ) => {{
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/
H A Dseg.rs44 ($struct_name: ident) => {
/DragonOS/kernel/src/namespaces/
H A Dmod.rs83 ($ptr:expr, $struct:path, $field:ident) => {
/DragonOS/kernel/src/filesystem/vfs/
H A Dmod.rs955 ($name:ident) => {
967 ($initializer_slice:ident,$filesystem:ident,$raw_data : ident) => {
/DragonOS/kernel/src/driver/acpi/
H A Dsysfs.rs272 ($name:ident) => { in read()
290 ($name: ident, $tables: expr) => { in read()
/DragonOS/kernel/crates/rbpf/tests/
H A Dcranelift.rs14 ($name:ident, $prog:expr, $expected:expr) => {
23 ($name:ident, $prog:expr, $mem:expr, $expected:expr) => {
/DragonOS/kernel/src/bpf/helper/
H A Dmod.rs16 ($name:ident) => {