Home
last modified time | relevance | path

Searched refs:function (Results 1 – 14 of 14) sorted by relevance

/DragonOS/kernel/crates/unified-init/macros/src/
H A Dlib.rs53 let function = syn::parse::<ItemFn>(input)?; in do_unified_init() localVariable
55 check_function_signature(&function)?; in do_unified_init()
62 generate_unified_initializer(&function, target_slice, function.sig.ident.to_string())?; in do_unified_init()
66 output.extend(function.into_token_stream()); in do_unified_init()
81 fn check_function_signature(function: &ItemFn) -> syn::Result<()> { in check_function_signature()
83 if !function.sig.inputs.is_empty() { in check_function_signature()
85 function.sig.inputs.span(), in check_function_signature()
90 if let syn::ReturnType::Type(_, ty) = &function.sig.output { in check_function_signature()
155 function.sig.output.span(), in check_function_signature()
162 function: &ItemFn, in generate_unified_initializer()
[all …]
/DragonOS/kernel/crates/unified-init/src/
H A Dlib.rs10 function: &'static UnifiedInitFunction, field
17 function: &'static UnifiedInitFunction, in new()
19 UnifiedInitializer { function, name } in new()
24 (self.function)() in call()
/DragonOS/kernel/crates/rbpf/src/
H A Dlib.rs257 pub fn register_helper(&mut self, key: u32, function: Helper) -> Result<(), Error> { in register_helper()
258 self.helpers.insert(key, function); in register_helper()
763 function: fn(u64, u64, u64, u64, u64) -> u64, in register_helper()
765 self.parent.register_helper(key, function) in register_helper()
1197 function: fn(u64, u64, u64, u64, u64) -> u64, in register_helper()
1199 self.parent.register_helper(key, function) in register_helper()
1210 for (key, function) in helpers { in register_helper_set()
1211 self.parent.register_helper(*key, *function)?; in register_helper_set()
1553 function: fn(u64, u64, u64, u64, u64) -> u64, in register_helper()
1555 self.parent.register_helper(key, function) in register_helper()
[all …]
H A Dinterpreter.rs640 if let Some(function) = helpers.get(&(insn.imm as u32)) { in execute_program()
641 reg[0] = function(reg[1], reg[2], reg[3], reg[4], reg[5]); in execute_program()
/DragonOS/kernel/src/arch/x86_64/pci/
H A Dpci.rs44 | ((bus_device_function.function as u32 & 7) << 8) in read_config()
58 | ((bus_device_function.function as u32 & 7) << 8) in write_config()
/DragonOS/docs/kernel/trace/
H A DeBPF.md175 /// See https://ebpf-docs.dylanreimerink.nl/linux/helper-function/bpf_map_lookup_elem/
181 /// See https://ebpf-docs.dylanreimerink.nl/linux/helper-function/bpf_map_update_elem/
187 /// See https://ebpf-docs.dylanreimerink.nl/linux/helper-function/bpf_map_delete_elem/
191 /// For each element in map, call callback_fn function with map,
194 /// See https://ebpf-docs.dylanreimerink.nl/linux/helper-function/bpf_for_each_map_elem/
/DragonOS/kernel/src/driver/pci/
H A Dpci.rs962 function: 0, in pci_check_all_buses()
968 for function in 1..8 { in pci_check_all_buses()
969 pci_check_bus(function)?; in pci_check_all_buses()
1007 function: 0, in pci_check_device()
1027 for function in 1..8 { in pci_check_device()
1031 function, in pci_check_device()
1105 pub function: u8, field
1114 self.device < 32 && self.function < 8 in valid()
1126 value.bus, value.device, value.function in from()
1136 self.bus, self.device, self.function in fmt()
H A Droot.rs141 | bus_device_function.function as u32; in cam_offset()
/DragonOS/kernel/src/filesystem/vfs/
H A Dmod.rs926 function: &'static FileSystemNewFunction, field
933 function: &'static FileSystemNewFunction, in new()
935 FileSystemMaker { function, name } in new()
942 (self.function)(data) in call()
/DragonOS/kernel/crates/rbpf/
H A DREADME.md99 function.
125 of packet data in the buffer. On calling the function that runs the program
159 the struct from which the function is called. For instance,
184 verifier attached to the VM. The verifying function of the VM can be changed at
204 function: Helper) -> Result<(), Error>
207 This function is used to register a helper function. The VM stores its
226 Interprets the loaded program. The function takes a reference to the packet
236 use helper functions, they must be registered into the VM before this function
237 is called. The generated assembly function is internally stored in the VM.
318 // data must be passed to the function that executes the program.
[all …]
/DragonOS/docs/kernel/debug/
H A Ddebug-kernel-with-gdb.md313 step <function> #进入指定的函数,并停止在函数内的第一行。
328 list <filename>:<function> #显示<filename>文件里面的<funtion>函数的源代码片段
/DragonOS/kernel/src/arch/x86_64/asm/
H A Dhead.S178 .type _start, @function
300 .type _start64, @function
/DragonOS/kernel/src/arch/riscv64/asm/
H A Dhead.S11 .type _start, @function
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.9.md2158 add function declaration to avoid compiling warning