/DragonOS/kernel/src/libs/ |
H A D | casting.rs | 56 pub trait DowncastArc: Any + Send + Sync { 65 fn downcast_arc<T: Any + Send + Sync>(self: Arc<Self>) -> Option<Arc<T>> { in downcast_arc()
|
H A D | lock_free_flags.rs | 36 unsafe impl<T: Sync> Sync for LockFreeFlags<T> {}
|
H A D | lazy_init.rs | 156 unsafe impl<T: Send + Sync> Sync for Lazy<T> {}
|
/DragonOS/kernel/crates/intertrait/src/ |
H A D | lib.rs | 67 marker::{Send, Sync}, 85 pub type BoxedCaster = Box<dyn Any + Send + Sync>; 166 fn cast_arc_panic<T: ?Sized + 'static>(_: Arc<dyn Any + Sync + Send>) -> Arc<T> { in cast_arc_panic() 196 pub cast_arc: fn(from: Arc<dyn Any + Sync + Send + 'static>) -> Arc<T>, 220 cast_arc: fn(from: Arc<dyn Any + Sync + Send>) -> Arc<T>, in new_sync() 293 pub trait CastFromSync: CastFrom + Sync + Send + 'static { 294 fn arc_any(self: Arc<Self>) -> Arc<dyn Any + Sync + Send + 'static>; in arc_any() 333 impl<T: Sized + Sync + Send + 'static> CastFromSync for T { 334 fn arc_any(self: Arc<Self>) -> Arc<dyn Any + Sync + Send + 'static> { in arc_any() 339 impl CastFrom for dyn Any + Sync + Send + 'static { [all …]
|
/DragonOS/kernel/src/virt/kvm/ |
H A D | vcpu.rs | 4 pub trait Vcpu: Send + Sync {
|
/DragonOS/kernel/crates/intertrait/macros/src/ |
H A D | args.rs | 9 Sync, enumerator 15 "sync" => Ok(Flag::Sync), in from()
|
H A D | item_type.rs | 24 .flat_map(|t| generate_caster(ident, &t, flags.contains(&Flag::Sync))) in process()
|
H A D | lib.rs | 142 .map(|t| generate_caster(&ty, t, flags.contains(&Flag::Sync))) in castable_to()
|
H A D | item_impl.rs | 34 generate_caster(self_ty, &path, flags.contains(&Flag::Sync)) in process()
|
/DragonOS/docs/kernel/core_api/ |
H A D | casting.md | 44 …现`DowncastArc`trait。这个trait定义在`kernel/src/libs/casting.rs`中。它要求`trait U`实现`Any + Sync + Send`trait. 46   为`trait U: Any + Send + Sync`实现`DowncastArc`trait,需要这样做:
|
/DragonOS/kernel/src/exception/ |
H A D | msi.rs | 128 pub trait MsiDescFunc: Debug + Send + Sync { 135 pub trait MsiDescFuncData: Send + Sync + Any {}
|
H A D | irqchip.rs | 39 pub trait IrqChip: Sync + Send + Any + Debug { 231 pub trait IrqChipData: Sync + Send + Any + Debug { 287 pub trait IrqChipGenericOps: Debug + Send + Sync { 304 pub trait IrqChipGenericPrivateData: Sync + Send + Any + Debug {}
|
H A D | mod.rs | 24 pub trait InterruptArch: Send + Sync {
|
/DragonOS/docs/kernel/filesystem/ |
H A D | sysfs.md | 29 pub trait Device: Any + Send + Sync + Debug {} 47 pub trait Driver: Any + Send + Sync + Debug {}
|
/DragonOS/kernel/crates/rust-slabmalloc/src/ |
H A D | lib.rs | 87 pub trait CallBack: Send + Sync {
|
/DragonOS/kernel/src/filesystem/sysfs/ |
H A D | mod.rs | 96 pub trait AttributeGroup: Debug + Send + Sync { 127 pub trait Attribute: Debug + Send + Sync {
|
/DragonOS/kernel/src/driver/tty/ |
H A D | console.rs | 10 pub trait ConsoleSwitch: Sync + Send {
|
H A D | tty_port.rs | 67 pub trait TtyPort: Sync + Send + Debug {
|
/DragonOS/kernel/src/mm/ |
H A D | percpu.rs | 110 unsafe impl<T> Sync for PerCpuVar<T> {}
|
/DragonOS/kernel/src/filesystem/kernfs/ |
H A D | callback.rs | 14 pub trait KernFSCallback: Send + Sync + Debug {
|
/DragonOS/docs/kernel/libs/lib_ui/ |
H A D | scm.md | 13 pub trait ScmUiFramework: Sync + Send + Debug {
|
/DragonOS/kernel/src/driver/serial/ |
H A D | mod.rs | 18 pub trait UartDriver: Debug + Send + Sync {
|
/DragonOS/kernel/src/process/ |
H A D | kthread.rs | 97 UsizeClosure((Box<dyn Fn(usize) -> i32 + Send + Sync>, usize)), 99 EmptyClosure((Box<dyn Fn() -> i32 + Send + Sync>, ())), 111 unsafe impl Sync for KernelThreadClosure {}
|
/DragonOS/kernel/src/driver/base/ |
H A D | kobject.rs | 26 pub trait KObject: Any + Send + Sync + Debug + CastFromSync { 92 pub trait KObjType: Debug + Send + Sync {
|
/DragonOS/docs/kernel/sched/ |
H A D | kernel_timer.md | 19 pub trait TimerFunction: Send + Sync {
|