pub struct ProcessStartData {
pub process: Process,
pub root_vmar: Vmar,
pub thread: Thread,
pub entry: u64,
pub stack: u64,
pub bootstrap: Channel,
pub vdso_base: u64,
pub base: u64,
}
Expand description
The information required to start a process.
To start the process, call zx_process_start
with the arguments provided.
Fields§
§process: Process
The process that was created.
root_vmar: Vmar
The vmar object that was created when the process was created.
See https://fuchsia.dev/fuchsia-src/reference/syscalls/process_create.md.
thread: Thread
The initial thread for the process.
Should be passed to zx_process_start
when starting the process.
entry: u64
The address of the initial entry point in the process.
Should be passed to zx_process_start
when starting the process.
stack: u64
The stack pointer value for the initial thread of the process.
Should be passed to zx_process_start
when starting the process.
bootstrap: Channel
The bootstrap channel to pass to the process on startup.
Should be passed to zx_process_start
when starting the process.
vdso_base: u64
The base address of the vDSO to pass to the process on startup.
Should be passed to zx_process_start
when starting the process.
base: u64
The base load address of the ELF file loaded.
Most often used by debuggers or other tools that inspect the process.
Trait Implementations§
Source§impl Debug for ProcessStartData
impl Debug for ProcessStartData
Source§impl Decode<ProcessStartData, DefaultFuchsiaResourceDialect> for ProcessStartData
impl Decode<ProcessStartData, DefaultFuchsiaResourceDialect> for ProcessStartData
Source§impl Encode<ProcessStartData, DefaultFuchsiaResourceDialect> for &mut ProcessStartData
impl Encode<ProcessStartData, DefaultFuchsiaResourceDialect> for &mut ProcessStartData
Source§impl<T0: Encode<HandleType<Process, { _ }, 2147483648>, DefaultFuchsiaResourceDialect>, T1: Encode<HandleType<Vmar, { _ }, 2147483648>, DefaultFuchsiaResourceDialect>, T2: Encode<HandleType<Thread, { _ }, 2147483648>, DefaultFuchsiaResourceDialect>, T3: Encode<u64, DefaultFuchsiaResourceDialect>, T4: Encode<u64, DefaultFuchsiaResourceDialect>, T5: Encode<HandleType<Channel, { _ }, 2147483648>, DefaultFuchsiaResourceDialect>, T6: Encode<u64, DefaultFuchsiaResourceDialect>, T7: Encode<u64, DefaultFuchsiaResourceDialect>> Encode<ProcessStartData, DefaultFuchsiaResourceDialect> for (T0, T1, T2, T3, T4, T5, T6, T7)
impl<T0: Encode<HandleType<Process, { _ }, 2147483648>, DefaultFuchsiaResourceDialect>, T1: Encode<HandleType<Vmar, { _ }, 2147483648>, DefaultFuchsiaResourceDialect>, T2: Encode<HandleType<Thread, { _ }, 2147483648>, DefaultFuchsiaResourceDialect>, T3: Encode<u64, DefaultFuchsiaResourceDialect>, T4: Encode<u64, DefaultFuchsiaResourceDialect>, T5: Encode<HandleType<Channel, { _ }, 2147483648>, DefaultFuchsiaResourceDialect>, T6: Encode<u64, DefaultFuchsiaResourceDialect>, T7: Encode<u64, DefaultFuchsiaResourceDialect>> Encode<ProcessStartData, DefaultFuchsiaResourceDialect> for (T0, T1, T2, T3, T4, T5, T6, T7)
Source§impl Hash for ProcessStartData
impl Hash for ProcessStartData
Source§impl Ord for ProcessStartData
impl Ord for ProcessStartData
Source§fn cmp(&self, other: &ProcessStartData) -> Ordering
fn cmp(&self, other: &ProcessStartData) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ProcessStartData
impl PartialEq for ProcessStartData
Source§impl PartialOrd for ProcessStartData
impl PartialOrd for ProcessStartData
Source§impl ResourceTypeMarker for ProcessStartData
impl ResourceTypeMarker for ProcessStartData
Source§type Borrowed<'a> = &'a mut ProcessStartData
type Borrowed<'a> = &'a mut ProcessStartData
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for ProcessStartData
impl TypeMarker for ProcessStartData
Source§type Owned = ProcessStartData
type Owned = ProcessStartData
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.