Home
last modified time | relevance | path

Searched refs:Owned (Results 1 – 6 of 6) sorted by relevance

/qemu/rust/qemu-api/src/
H A Dqom.rs599 pub struct Owned<T: ObjectType>(NonNull<T>); struct
608 unsafe impl<T: ObjectType + Send + Sync> Send for Owned<T> {} implementation
616 unsafe impl<T: ObjectType + Sync + Send> Sync for Owned<T> {} implementation
618 impl<T: ObjectType> Owned<T> { implementation
641 Owned(NonNull::new(ptr.cast_mut()).unwrap()) in from_raw()
647 pub fn into_raw(src: Owned<T>) -> *mut T { in into_raw()
666 Owned(NonNull::new_unchecked(obj.as_mut_ptr())) in from()
671 impl<T: ObjectType> Clone for Owned<T> { implementation
676 unsafe { Owned::from(self.deref()) } in clone()
680 impl<T: ObjectType> Deref for Owned<T> { implementation
[all …]
H A Dqdev.rs22 qom::{ObjectClass, ObjectImpl, Owned},
274 ) -> Owned<Clock> { in init_clock_in()
280 ) -> Owned<Clock> { in init_clock_in()
284 // does not gift the reference to its caller; so use Owned::from to in init_clock_in()
298 Owned::from(clk) in init_clock_in()
327 fn init_clock_out(&self, name: &str) -> Owned<Clock> { in init_clock_out()
333 Owned::from(clk) in prop_set_chr()
337 fn prop_set_chr(&self, propname: &str, chr: &Owned<Chardev>) { in prop_set_chr()
H A Dsysbus.rs18 qom::Owned,
101 fn connect_irq(&self, id: u32, irq: &Owned<IRQState>) { in connect_irq()
H A Dvmstate.rs32 bindings::VMStateFlags, callbacks::FnCall, prelude::*, qom::Owned, zeroable::Zeroable,
415 impl_vmstate_pointer!(Owned<T> where T: VMState + ObjectType);
519 $crate::qom::Owned<$crate::qdev::Clock> $(, num = $num)?
/qemu/rust/hw/char/pl011/src/
H A Ddevice.rs14 qom::{ObjectImpl, Owned, ParentField},
123 pub clock: Owned<Clock>,
515 // self.clock is not initialized at this point; but since `Owned<_>` is in init()
666 // They do not gift them to pl011_create, so use `Owned::from`. in pl011_create()
667 let irq = unsafe { Owned::<IRQState>::from(&*irq) }; in pl011_create()
671 let chr = unsafe { Owned::<Chardev>::from(&*chr) }; in pl011_create()
/qemu/docs/devel/
H A Drust.rst315 ``Owned<T>`` for those that need it.