/DragonOS/kernel/src/debug/kprobe/ |
H A D | test.rs | 15 let pt_regs = regs.as_any().downcast_ref::<TrapFrame>().unwrap(); in pre_handler() 23 let pt_regs = regs.as_any().downcast_ref::<TrapFrame>().unwrap(); in post_handler() 31 let pt_regs = regs.as_any().downcast_ref::<TrapFrame>().unwrap(); in fault_handler() 53 let pt_regs = regs.as_any().downcast_ref::<TrapFrame>().unwrap(); in kprobe_test()
|
/DragonOS/kernel/crates/intertrait/macros/src/ |
H A D | gen_caster.rs | 18 |from| from.downcast_ref::<#ty>().unwrap(), in generate_caster() 28 |from| from.downcast_ref::<#ty>().unwrap(), in generate_caster()
|
/DragonOS/kernel/src/filesystem/devfs/ |
H A D | mod.rs | 142 .downcast_ref::<LockedDevFSInode>() in register_device() 169 .downcast_ref::<LockedDevFSInode>() in register_device() 210 .downcast_ref::<LockedDevFSInode>() in unregister_device() 223 .downcast_ref::<LockedDevFSInode>() in unregister_device() 590 .downcast_ref::<LockedDevFSInode>() 596 .downcast_ref::<DevFS>()
|
/DragonOS/kernel/src/filesystem/procfs/ |
H A D | mod.rs | 377 .downcast_ref::<LockedProcFSInode>() in new() 390 .downcast_ref::<LockedProcFSInode>() in new() 421 .downcast_ref::<LockedProcFSInode>() in register_pid() 653 .downcast_ref::<LockedProcFSInode>() in link() 810 .downcast_ref::<LockedProcFSInode>() in procfs_register_pid() 813 let procfs: &ProcFS = fs.as_any_ref().downcast_ref::<ProcFS>().unwrap(); in procfs_register_pid() 827 .downcast_ref::<LockedProcFSInode>() in procfs_unregister_pid() 830 let procfs: &ProcFS = fs.as_any_ref().downcast_ref::<ProcFS>().unwrap(); in procfs_unregister_pid()
|
/DragonOS/kernel/src/arch/x86_64/driver/apic/ |
H A D | ioapic.rs | 499 .downcast_ref::<IoApicChipData>() in irq_mask() 530 .downcast_ref::<IoApicChipData>() in irq_set_type() 558 .downcast_ref::<IoApicChipData>() in irq_set_affinity() 609 .downcast_ref::<IoApicChipData>() in irqchip_state() 643 .downcast_ref::<IoApicChipData>() in irq_disable()
|
H A D | lapic_vector.rs | 90 let apicd = chip_data.ref_any().downcast_ref::<ApicChipData>().unwrap(); in irq_compose_msi_msg() 102 .downcast_ref::<ApicChipData>() in retrigger()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | file.rs | 584 let inode = self.inode.downcast_ref::<SocketInode>().unwrap(); in add_epoll() 590 let inode = self.inode.downcast_ref::<LockedPipeInode>().unwrap(); in add_epoll() 608 let inode = self.inode.downcast_ref::<SocketInode>().unwrap(); in remove_epoll() 614 let inode = self.inode.downcast_ref::<LockedPipeInode>().unwrap(); in remove_epoll() 618 let inode = self.inode.downcast_ref::<EventFdInode>(); in remove_epoll() 624 .downcast_ref::<PerfEventInode>() in remove_epoll()
|
H A D | mod.rs | 587 pub fn downcast_ref<T: IndexNode>(&self) -> Option<&T> { in downcast_ref() method 588 return self.as_any_ref().downcast_ref::<T>(); in downcast_ref()
|
/DragonOS/kernel/src/driver/irqchip/ |
H A D | riscv_sifive_plic.rs | 264 .downcast_ref::<PlicChipData>() in irq_unmask() 287 .downcast_ref::<PlicChipData>() in irq_mask() 362 .downcast_ref::<PlicChipData>() in irq_set_affinity() 592 .downcast_ref::<PlicChipData>() in map()
|
/DragonOS/kernel/src/driver/tty/pty/ |
H A D | unix98pty.rs | 259 .downcast_ref::<MountFS>() in ptmx_open() 262 let fsinfo = fs.as_any_ref().downcast_ref::<DevPtsFs>().unwrap(); in ptmx_open()
|
/DragonOS/kernel/crates/intertrait/src/ |
H A D | lib.rs | 245 .and_then(|caster| caster.downcast_ref::<Caster<T>>()) in caster() 252 .and_then(|caster| caster.downcast_ref::<Caster<T>>()) in caster() 390 cast_ref: |from| from.downcast_ref::<TestStruct>().unwrap(), in create_test_caster()
|
/DragonOS/kernel/src/perf/ |
H A D | kprobe.rs | 70 let trap_frame = trap_frame.as_any().downcast_ref::<TrapFrame>().unwrap(); in call()
|
H A D | mod.rs | 319 .downcast_ref::<BpfPerfEvent>() in perf_event_output()
|
/DragonOS/kernel/src/filesystem/overlayfs/ |
H A D | mod.rs | 153 .and_then(|d| d.as_any().downcast_ref::<OverlayMountData>()) in make_overlayfs() 246 if let Some(ovl_inode) = inode.as_any_ref().downcast_ref::<OvlInode>() { in has_whiteout()
|
/DragonOS/kernel/src/driver/input/ps2_mouse/ |
H A D | ps_mouse_driver.rs | 110 .downcast_ref::<Ps2MouseDevice>(); in process_packet()
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | rtc.rs | 242 .downcast_ref::<CmosRtcDevice>() in read_time()
|
/DragonOS/kernel/src/filesystem/ramfs/ |
H A D | mod.rs | 358 .downcast_ref::<LockedRamFSInode>() in link()
|
/DragonOS/kernel/src/net/ |
H A D | syscall.rs | 604 let socketinode = inode.as_any_ref().downcast_ref::<Arc<SocketInode>>(); in to_endpoint()
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | fs.rs | 1719 .downcast_ref::<LockedFATInode>() in move_to()
|