Home
last modified time | relevance | path

Searched refs:source (Results 1 – 25 of 30) sorted by relevance

12

/DragonOS/kernel/crates/intertrait/tests/
H A Don-type-multi-traits.rs44 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 Dcastable_to.rs45 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 Don-trait-impl.rs24 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 Don-struct.rs24 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 Don-enum.rs28 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 Don-trait-impl-assoc-type1.rs30 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 Don-trait-impl-assoc-type2.rs32 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 Don-trait-impl-assoc-type3.rs32 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 Dmain.rs15 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 Dinsn_builder.rs113 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 Dunknown-flag.rs24 let source: Arc<dyn Source> = data; in main() localVariable
25 let greet = source.cast::<dyn Greet>(); in main()
H A Dduplicate-flags.rs24 let source: Arc<dyn Source> = data; in main() localVariable
25 let greet = source.cast::<dyn Greet>(); in main()
H A Don-generic-type.rs28 let source: &dyn Source = &data; in main() localVariable
29 let greet = source.cast::<dyn Greet>(); in main()
/DragonOS/
H A DREADME_EN.md22 …onOS open-source community was established in July 2022 and is entirely business-neutral. Our goal…
63 &emsp;&emsp;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…
112source 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 DLICENSE24 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 Dkernel_allocator.rs143 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 Dmm.rs53 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 Dlib.rs22 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 Dmain.rs52 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 Dapp.rs38 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 Drust-toolchain.toml3 # The source code of rustc, provided by the rust-src component, is needed for
/DragonOS/kernel/crates/rbpf/examples/
H A Dload_elf__block_a_port.c40 if (tcp->source == BLOCKED_TCP_PORT || tcp->dest == BLOCKED_TCP_PORT) in handle_ingress()
/DragonOS/docs/introduction/
H A Dbuild_system.md144 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 Dmain.rs129 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 DREADME.md56 let source: &dyn Source = &data;
57 let greet = source.cast::<dyn Greet>();
125 * Mark source traits with [`CastFromSync`] instead of [`CastFrom`]

12