/DragonOS/kernel/crates/intertrait/tests/ |
H A D | on-type-multi-traits.rs | 44 let source: &dyn Source = &data; in test_multi_traits_on_struct() localVariable 46 let greet = source.cast::<dyn Greet>(); in test_multi_traits_on_struct() 49 let greet1 = source.cast::<dyn Greet1>(); in test_multi_traits_on_struct() 52 let greet2 = source.cast::<dyn Greet2>(); in test_multi_traits_on_struct()
|
H A D | castable_to.rs | 45 let source: &dyn Source = &data; in test_multi_traits_on_struct() localVariable 47 let greet = source.cast::<dyn Greet>(); in test_multi_traits_on_struct() 50 let greet1 = source.cast::<dyn Greet1>(); in test_multi_traits_on_struct() 53 let greet2 = source.cast::<dyn Greet2>(); in test_multi_traits_on_struct()
|
H A D | on-trait-impl.rs | 24 let source: &dyn Source = &data; in test_cast_to_on_trait_impl() localVariable 25 let greet = source.cast::<dyn Greet>(); in test_cast_to_on_trait_impl()
|
H A D | on-struct.rs | 24 let source: &dyn Source = &data; in test_cast_to_on_struct() localVariable 25 let greet = source.cast::<dyn Greet>(); in test_cast_to_on_struct()
|
H A D | on-enum.rs | 28 let source: &dyn Source = &data; in test_cast_to_on_enum() localVariable 29 let greet = source.cast::<dyn Greet>(); in test_cast_to_on_enum()
|
H A D | on-trait-impl-assoc-type1.rs | 30 let source: &dyn Source = &data; in test_cast_to_on_trait_impl_with_assoc_type1() localVariable 31 let producer = source.cast::<dyn Producer<Output = i32>>(); in test_cast_to_on_trait_impl_with_assoc_type1()
|
H A D | on-trait-impl-assoc-type2.rs | 32 let source: &dyn Source = &data; in test_cast_to_on_trait_impl_with_assoc_type2() localVariable 33 let concat = source.cast::<dyn Concat<I1 = i32, I2 = &'static str>>(); in test_cast_to_on_trait_impl_with_assoc_type2()
|
H A D | on-trait-impl-assoc-type3.rs | 32 let source: &dyn Source = &data; in test_cast_to_on_trait_impl_with_assoc_type3() localVariable 33 let concat = source.cast::<dyn Concat<String, I1 = i32, I2 = &'static str>>(); in test_cast_to_on_trait_impl_with_assoc_type3()
|
/DragonOS/user/apps/test-mount/src/ |
H A D | main.rs | 15 let source = b"\0".as_ptr() as *const c_char; in main() localVariable 20 let result = unsafe { mount(source, target, fstype, flags, data) }; in main() 27 let result = unsafe { mount(source, target, fstype, flags, data) }; in main()
|
/DragonOS/kernel/crates/rbpf/src/ |
H A D | insn_builder.rs | 113 pub fn add(&mut self, source: Source, arch: Arch) -> Move { in add() 114 self.mov_internal(source, arch, OpBits::Add) in add() 118 pub fn sub(&mut self, source: Source, arch: Arch) -> Move { in sub() 119 self.mov_internal(source, arch, OpBits::Sub) in sub() 123 pub fn mul(&mut self, source: Source, arch: Arch) -> Move { in mul() 124 self.mov_internal(source, arch, OpBits::Mul) in mul() 128 pub fn div(&mut self, source: Source, arch: Arch) -> Move { in div() 129 self.mov_internal(source, arch, OpBits::Div) in div() 133 pub fn bit_or(&mut self, source: Source, arch: Arch) -> Move { in bit_or() 134 self.mov_internal(source, arch, OpBits::BitOr) in bit_or() [all …]
|
/DragonOS/kernel/crates/intertrait/tests/ui/ |
H A D | unknown-flag.rs | 24 let source: Arc<dyn Source> = data; in main() localVariable 25 let greet = source.cast::<dyn Greet>(); in main()
|
H A D | duplicate-flags.rs | 24 let source: Arc<dyn Source> = data; in main() localVariable 25 let greet = source.cast::<dyn Greet>(); in main()
|
H A D | on-generic-type.rs | 28 let source: &dyn Source = &data; in main() localVariable 29 let greet = source.cast::<dyn Greet>(); in main()
|
/DragonOS/ |
H A D | README_EN.md | 22 …onOS open-source community was established in July 2022 and is entirely business-neutral. Our goal… 63   DragonOS is an open source public welfare project, but its development cannot be separa… 106 ## Open source statement 108 …pts GPLv2 LICENSE for open source. You are welcome to use the code of this project on the basis of… 112 …source license. Including but not limited to: plagiarizing the code of the project as your graduat… 114 … find any violation of the open source license, we welcome you to send email feedback! Let's build…
|
H A D | LICENSE | 24 this service if you wish), that you receive source code or can get it 36 source code. And you must show them these terms so they know their 80 source code as you receive it, in any medium, provided that you 139 source code, which must be distributed under the terms of Sections 144 cost of physically performing source distribution, a complete 145 machine-readable copy of the corresponding source code, to be 150 to distribute corresponding source code. (This alternative is 155 The source code for a work means the preferred form of the work for 156 making modifications to it. For an executable work, complete source 157 code means all the source code for all modules it contains, plus any [all …]
|
/DragonOS/kernel/src/mm/allocator/ |
H A D | kernel_allocator.rs | 143 fn alloc_debug_log(source: LogSource, layout: Layout, ptr: *mut u8) { in alloc_debug_log() 146 source, in alloc_debug_log() 150 fn dealloc_debug_log(source: LogSource, layout: Layout, ptr: *mut u8) { in dealloc_debug_log() 153 source, in dealloc_debug_log()
|
/DragonOS/kernel/src/debug/klog/ |
H A D | mm.rs | 53 pub fn log(log_type: AllocatorLogType, source: LogSource, pid: Option<Pid>) { in log() 58 source, in log()
|
/DragonOS/kernel/crates/klog_types/src/ |
H A D | lib.rs | 22 pub source: LogSource, field 43 source: LogSource, in new() 51 source, in new() 65 source: LogSource::Undefined, in zeroed()
|
/DragonOS/user/apps/test-symlink/src/ |
H A D | main.rs | 52 let source = b"\0".as_ptr() as *const c_char; in mount_test_ramfs() localVariable 58 let result = unsafe { mount(source, target, fstype, flags, data) }; in mount_test_ramfs()
|
/DragonOS/tools/debugging/logmonitor/src/ |
H A D | app.rs | 38 source: rand_signal, in new() 131 source: S, field 145 .extend(self.source.by_ref().take(self.tick_rate)); in on_tick()
|
/DragonOS/user/apps/test_ebpf/syscall_ebpf/syscall_ebpf-ebpf/ |
H A D | rust-toolchain.toml | 3 # The source code of rustc, provided by the rust-src component, is needed for
|
/DragonOS/kernel/crates/rbpf/examples/ |
H A D | load_elf__block_a_port.c | 40 if (tcp->source == BLOCKED_TCP_PORT || tcp->dest == BLOCKED_TCP_PORT) in handle_ingress()
|
/DragonOS/docs/introduction/ |
H A D | build_system.md | 144 source ~/.cargo/env 145 source "$HOME/.cargo/env" 149 echo -e "[source.crates-io] \n \ 153 [source.dragonos-gitee] \n \
|
/DragonOS/user/apps/test-chown/src/ |
H A D | main.rs | 129 let source = b"\0".as_ptr() as *const c_char; in mount_test_ramfs() localVariable 135 let result = unsafe { mount(source, target, fstype, flags, data) }; in mount_test_ramfs()
|
/DragonOS/kernel/crates/intertrait/ |
H A D | README.md | 56 let source: &dyn Source = &data; 57 let greet = source.cast::<dyn Greet>(); 125 * Mark source traits with [`CastFromSync`] instead of [`CastFrom`]
|