Expand description
Process startup state (argc, argv, environ, auxv), ELF note, and _start entry macro.
Structs§
- AuxSummary
- Decoded summary of known auxiliary vector tags.
- ElfNote24
- 24-byte ELF note header + 4-byte owner + 4-byte version descriptor.
Constants§
- AT_
ENTRY - AT_
EXECFN - AT_
HWCAP - AT_
HWCA P2 - AT_NULL
- AT_
PAGESZ - AT_PHDR
- AT_
PHENT - AT_
PHNUM - AT_
RANDOM - DEFAULT_
PAGE_ SIZE - Default page size when
AT_PAGESZis absent or startup state has not been initialized. - MAX_
STACK_ WORDS - Maximum number of
u64stack words inspected byinit_from_stack.
Traits§
- Entry
Outcome - Trait allowing
process_entry!to accept(),u8,i32, orResult<(), E>.
Functions§
- args_
vec - Returns the command-line arguments (
argv[0..argc]) as byte vectors. - aux_
summary - Returns the decoded
AuxSummarycaptured at process startup. - environ_
vec - Returns all environment variables as
KEY=VALUEbyte vectors. - getauxval
- Looks up a value from the auxiliary vector by tag
key. - getenv_
vec - Looks up the environment variable
nameand returns a cloned byte vector of its value. - init_
from_ ⚠stack - Parses the initial EL0 process stack at
sp(argc,argv,envp,auxv) and records process startup state. - make_
elf_ note - Constructs a 24-byte
ElfNote24for a 4-byte owner tag. - page_
size - Returns the active system page size in bytes (defaulting to
4096). - setenv_
bytes - Inserts or updates the environment variable
namewithvalue.