Home
last modified time | relevance | path

Searched refs:U (Results 1 – 3 of 3) sorted by relevance

/DragonOS/docs/kernel/core_api/
H A Dcasting.md42 ### 2.1 从Arc<dyn U>转换为Arc<T>
44 …emsp;当我们需要把一个`Arc<dyn U>`转换为`Arc<T>`的具体类型指针时,我们要为`U`这个trait实现`DowncastArc`trait。这个trait定义在`kernel/…
46 &emsp;&emsp;为`trait U: Any + Send + Sync`实现`DowncastArc`trait,需要这样做:
49 impl DowncastArc for dyn U {
59 let arc: Arc<dyn U> = ...;
/DragonOS/kernel/src/syscall/
H A Duser_access.rs171 pub fn new<U>(addr: *const U, len: usize, from_user: bool) -> Result<Self, SystemError> { in new() argument
279 pub fn new<U>(addr: *mut U, len: usize, from_user: bool) -> Result<Self, SystemError> { in new() argument
/DragonOS/kernel/src/include/DragonOS/
H A Dstdint.h299 # define UINT32_C(c) c ## U