Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 32) sorted by relevance

12

/DragonOS/kernel/crates/rbpf/src/
H A Dassembler.rs83 let mut entry = |name: &str, inst_type: InstructionType, opc: u8| { in make_instruction_map() localVariable
88 entry("exit", NoOperand, ebpf::EXIT); in make_instruction_map()
89 entry("ja", JumpUnconditional, ebpf::JA); in make_instruction_map()
90 entry("call", Call, ebpf::CALL); in make_instruction_map()
91 entry("lddw", LoadImm, ebpf::LD_DW_IMM); in make_instruction_map()
94 entry("neg", AluUnary, ebpf::NEG64); in make_instruction_map()
95 entry("neg32", AluUnary, ebpf::NEG32); in make_instruction_map()
96 entry("neg64", AluUnary, ebpf::NEG64); in make_instruction_map()
100 entry(name, AluBinary, ebpf::BPF_ALU64 | opc); in make_instruction_map()
101 entry(&format!("{name}32"), AluBinary, ebpf::BPF_ALU | opc); in make_instruction_map()
[all …]
H A Dcranelift.rs141 let entry = builder.create_block(); in compile_function() localVariable
142 builder.append_block_params_for_function_params(entry); in compile_function()
143 builder.switch_to_block(entry); in compile_function()
146 self.build_function_prelude(&mut builder, entry)?; in compile_function()
163 entry: Block, in build_function_prelude()
217 let mem_start = bcx.block_params(entry)[0]; in build_function_prelude()
218 let mem_len = bcx.block_params(entry)[1]; in build_function_prelude()
224 let mbuf_start = bcx.block_params(entry)[2]; in build_function_prelude()
225 let mbuf_len = bcx.block_params(entry)[3]; in build_function_prelude()
1162 .entry(next_pc) in prepare_jump_blocks()
[all …]
/DragonOS/docs/kernel/core_api/
H A Dkernel_api.md19 ### `void list_add(struct List *entry, struct List *node)`
23   将node插入到entry的后方
27 **entry**
35 ### `void list_append(struct List *entry, struct List *node)`
39   将node插入到entry的前方
43 **entry**
51 ### `void list_del(struct List *entry)`
55   从链表中删除结点entry
59 **entry**
63 ### `list_del_init(struct List *entry)`
[all …]
/DragonOS/kernel/src/mm/
H A Dpage.rs545 pub unsafe fn entry(&self, i: usize) -> Option<PageEntry<Arch>> { in entry() method
551 pub unsafe fn set_entry(&self, i: usize, entry: PageEntry<Arch>) -> Option<()> { in set_entry()
553 Arch::write::<usize>(entry_virt, entry.data()); in set_entry()
602 self.entry(index)?.address().ok()?, in next_level_table()
624 if let Some(mut entry) = self.entry(i) { in clone()
625 if entry.present() { in clone()
627 let mut new_flags = entry.flags().set_write(false); in clone()
628 entry.set_flags(new_flags); in clone()
629 self.set_entry(i, entry); in clone()
631 entry.set_flags(new_flags); in clone()
[all …]
H A Dfault.rs204 if let Some(mut entry) = mapper.get_entry(address, 0) { in handle_pte_fault()
205 if !entry.present() { in handle_pte_fault()
209 if entry.protnone() && vma.is_accessible() { in handle_pte_fault()
214 if !entry.write() { in handle_pte_fault()
217 entry.set_flags(EntryFlags::from_data(MMArch::ENTRY_FLAG_DIRTY)); in handle_pte_fault()
445 let mut entry = mapper.get_entry(address, 0).unwrap(); in do_wp_page() localVariable
446 let new_flags = entry.flags().set_write(true).set_dirty(true); in do_wp_page()
452 entry.set_flags(new_flags); in do_wp_page()
453 table.set_entry(i, entry); in do_wp_page()
463 entry.set_flags(new_flags); in do_wp_page()
[all …]
/DragonOS/kernel/src/debug/
H A Dkallsyms.c50 int read_symbol(FILE *filp, struct kernel_symbol_entry_t *entry) in read_symbol() argument
61 int retval = sscanf(str, "%llx %c %512c", &entry->vaddr, &entry->type, symbol_name); in read_symbol()
87 entry->symbol = strdup(symbol_name); in read_symbol()
88 entry->symbol_length = len + 1; // +1的原因是.asciz指令会在字符串末尾自动添加结束符\0 in read_symbol()
/DragonOS/kernel/src/arch/x86_64/init/pvh/
H A Dmod.rs78 let entry = unsafe { *ep }; in early_init_memory_blocks() localVariable
79 let start = PhysAddr::new(entry.addr as usize); in early_init_memory_blocks()
80 let size = entry.size as usize; in early_init_memory_blocks()
81 let typ = E820Type::from(entry.type_); in early_init_memory_blocks()
/DragonOS/kernel/src/mm/allocator/
H A Dbuddy.rs257 let entry: PhysAddr = unsafe { in pop_front() localVariable
270 if entry.is_null() { in pop_front()
273 entry, in pop_front()
299 if !entry.check_aligned(1 << spec_order) { in pop_front()
300 …ry={:?} is not aligned, spec_order={spec_order}, page_list.entry_num={}", entry, tmp_current_entry… in pop_front()
302 return Some(entry); in pop_front()
412 let entry: PhysAddr = unsafe { A::read(entry_virt_addr) }; in buddy_free() localVariable
413 if entry == buddy_addr { in buddy_free()
450 let entry: PhysAddr = unsafe { in buddy_free() localVariable
458 A::write(buddy_entry_virt_addr, entry); in buddy_free()
/DragonOS/kernel/src/filesystem/fat/
H A Dfs.rs38 use super::entry::FATFile;
42 entry::{FATDir, FATDirEntry, FATDirIter, FATEntry},
154 if let Some(entry) = self.children.get(&search_name) { in find()
155 return Ok(entry.clone()); in find()
442 let mut entry = cursor.read_u16()?; in get_fat_entry() localVariable
445 entry >>= 4; in get_fat_entry()
447 entry &= 0x0fff; in get_fat_entry()
450 if entry == 0 { in get_fat_entry()
452 } else if entry == 0x0ff7 { in get_fat_entry()
454 } else if entry >= 0x0ff8 { in get_fat_entry()
[all …]
H A Dmod.rs2 pub mod entry; module
/DragonOS/kernel/src/libs/futex/
H A Dfutex.rs662 pub fn futex_uaddr(&self, entry: VirtAddr) -> VirtAddr { in futex_uaddr()
663 return VirtAddr::new(entry.data() + self.futex_offset as usize); in futex_uaddr()
829 entry: VirtAddr, field
837 entry: robust_list_head.list.next, in new()
855 while self.entry.data() != &self.robust_list_head.list as *const RobustList as usize { in next()
859 if self.entry.is_null() { in next()
864 let futex_uaddr = if self.entry.data() != self.robust_list_head.list_op_pending.data() { in next()
865 Some(self.robust_list_head.futex_uaddr(self.entry)) in next()
871 self.entry.as_ptr::<RobustList>(), in next()
880 self.entry = next_entry.next; in next()
/DragonOS/kernel/src/driver/firmware/efi/
H A Dtables.rs145 for entry in entries { in parse_config_tables()
147 .reserve_block(PhysAddr::new(entry.base), entry.size) in parse_config_tables()
432 entry: [LinuxEFIMemReserveEntry; 0], field
/DragonOS/kernel/src/filesystem/overlayfs/
H A Dmod.rs3 pub mod entry; module
16 use entry::{OvlEntry, OvlLayer};
319 for entry in lower_entries { in list()
320 if !entries.contains(&entry) && !self.has_whiteout(&entry) { in list()
321 entries.push(entry); in list()
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dfault.rs77 if let Some(entry) = mapper.get_entry(address, 0) { in show_fault_oops()
78 if entry.present() { in show_fault_oops()
79 if !entry.flags().has_execute() { in show_fault_oops()
H A Dmod.rs242 let entry: PageEntry<X86_64MMArch> = current_ktable in setup_new_usermapper() localVariable
244 .entry(pml4_entry_no) in setup_new_usermapper()
246 new_umapper.table().set_entry(pml4_entry_no, entry) in setup_new_usermapper()
/DragonOS/kernel/src/debug/kprobe/
H A Dmod.rs49 let list = self.break_list.entry(address).or_default(); in insert_break_point()
59 let list = self.debug_list.entry(address).or_default(); in insert_debug_point()
/DragonOS/kernel/src/filesystem/
H A Dmbr.rs177 let entry = &self.table.dpte[self.index]; in next() localVariable
180 if entry.is_valid() { in next()
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.2.md257 * 将entry.S中冗余的ret_from_syscall代码删除,改为jmp Restore_all
317entry.S中冗余的ret_from_syscall代码删除,改为jmp Restore_all (#98)
319 * 将entry.S中冗余的ret_from_syscall代码删除,改为jmp Restore_all
/DragonOS/kernel/src/arch/riscv64/mm/
H A Dmod.rs201 let entry: PageEntry<RiscV64MMArch> = current_ktable in setup_new_usermapper() localVariable
203 .entry(pml4_entry_no) in setup_new_usermapper()
205 new_umapper.table().set_entry(pml4_entry_no, entry) in setup_new_usermapper()
/DragonOS/kernel/src/arch/x86_64/syscall/
H A Dmod.rs18 interrupt::{entry::set_system_trap_gate, TrapFrame},
/DragonOS/kernel/src/arch/riscv64/init/
H A Dmod.rs18 use super::{cpu::init_local_context, interrupt::entry::handle_exception};
/DragonOS/kernel/src/arch/riscv64/interrupt/
H A Dmod.rs14 pub(super) mod entry; module
/DragonOS/kernel/src/arch/x86_64/interrupt/
H A Dmod.rs1 pub(super) mod entry; module
/DragonOS/kernel/src/ipc/
H A Dpipe.rs432 let entry = self.find(&name)?; in get_entry_name_and_metadata() localVariable
433 return Ok((name, entry.metadata()?)); in get_entry_name_and_metadata()
/DragonOS/kernel/src/arch/x86_64/driver/apic/
H A Dlapic_vector.rs15 entry::arch_setup_interrupt_gate,

12