pub struct Proc {
abi: Arc<dyn ProcAbi>,
pager: AtomicUsize,
}
Expand description
Implementation of proc
structure.
Fields§
§abi: Arc<dyn ProcAbi>
§pager: AtomicUsize
Implementations§
Source§impl Proc
impl Proc
Sourcepub fn new(
abi: Arc<dyn ProcAbi>,
events: &Arc<EventSet<ProcEvents>>,
) -> Arc<Self>
pub fn new( abi: Arc<dyn ProcAbi>, events: &Arc<EventSet<ProcEvents>>, ) -> Arc<Self>
See proc_init
and proc_ctor
on the Orbis for a reference.
§Reference offsets
Version | Offset |
---|---|
PS4 11.00 | 0x375970 and 0x3755D0 |
Sourcepub fn new_bare(abi: Arc<dyn ProcAbi>) -> Self
pub fn new_bare(abi: Arc<dyn ProcAbi>) -> Self
This function does not do anything except initialize the struct memory. It is the caller responsibility to configure the process after this so it have a proper states and trigger necessary events.
§Context safety
This function does not require a CPU context.
pub fn abi(&self) -> &Arc<dyn ProcAbi>
pub fn pager(&self) -> usize
Auto Trait Implementations§
impl !Freeze for Proc
impl !RefUnwindSafe for Proc
impl Send for Proc
impl Sync for Proc
impl Unpin for Proc
impl !UnwindSafe for Proc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more