Home
last modified time | relevance | path

Searched refs:Sync (Results 1 – 25 of 68) sorted by relevance

123

/DragonOS/kernel/src/libs/
H A Dcasting.rs56 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 Dlock_free_flags.rs36 unsafe impl<T: Sync> Sync for LockFreeFlags<T> {}
H A Dlazy_init.rs156 unsafe impl<T: Send + Sync> Sync for Lazy<T> {}
/DragonOS/kernel/crates/intertrait/src/
H A Dlib.rs67 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 Dvcpu.rs4 pub trait Vcpu: Send + Sync {
/DragonOS/kernel/crates/intertrait/macros/src/
H A Dargs.rs9 Sync, enumerator
15 "sync" => Ok(Flag::Sync), in from()
H A Ditem_type.rs24 .flat_map(|t| generate_caster(ident, &t, flags.contains(&Flag::Sync))) in process()
H A Dlib.rs142 .map(|t| generate_caster(&ty, t, flags.contains(&Flag::Sync))) in castable_to()
H A Ditem_impl.rs34 generate_caster(self_ty, &path, flags.contains(&Flag::Sync)) in process()
/DragonOS/docs/kernel/core_api/
H A Dcasting.md44 …现`DowncastArc`trait。这个trait定义在`kernel/src/libs/casting.rs`中。它要求`trait U`实现`Any + Sync + Send`trait.
46 &emsp;&emsp;为`trait U: Any + Send + Sync`实现`DowncastArc`trait,需要这样做:
/DragonOS/kernel/src/exception/
H A Dmsi.rs128 pub trait MsiDescFunc: Debug + Send + Sync {
135 pub trait MsiDescFuncData: Send + Sync + Any {}
H A Dirqchip.rs39 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 Dmod.rs24 pub trait InterruptArch: Send + Sync {
/DragonOS/docs/kernel/filesystem/
H A Dsysfs.md29 pub trait Device: Any + Send + Sync + Debug {}
47 pub trait Driver: Any + Send + Sync + Debug {}
/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dlib.rs87 pub trait CallBack: Send + Sync {
/DragonOS/kernel/src/filesystem/sysfs/
H A Dmod.rs96 pub trait AttributeGroup: Debug + Send + Sync {
127 pub trait Attribute: Debug + Send + Sync {
/DragonOS/kernel/src/driver/tty/
H A Dconsole.rs10 pub trait ConsoleSwitch: Sync + Send {
H A Dtty_port.rs67 pub trait TtyPort: Sync + Send + Debug {
/DragonOS/kernel/src/mm/
H A Dpercpu.rs110 unsafe impl<T> Sync for PerCpuVar<T> {}
/DragonOS/kernel/src/filesystem/kernfs/
H A Dcallback.rs14 pub trait KernFSCallback: Send + Sync + Debug {
/DragonOS/docs/kernel/libs/lib_ui/
H A Dscm.md13 pub trait ScmUiFramework: Sync + Send + Debug {
/DragonOS/kernel/src/driver/serial/
H A Dmod.rs18 pub trait UartDriver: Debug + Send + Sync {
/DragonOS/kernel/src/process/
H A Dkthread.rs97 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 Dkobject.rs26 pub trait KObject: Any + Send + Sync + Debug + CastFromSync {
92 pub trait KObjType: Debug + Send + Sync {
/DragonOS/docs/kernel/sched/
H A Dkernel_timer.md19 pub trait TimerFunction: Send + Sync {

123