Expand description
execve() syscall implementation.
Replaces the current process image with a new one.
Constantsยง
- AT_BASE ๐
- AT_
ENTRY ๐ - AT_
EXECFN ๐ - AT_NULL ๐
- AT_
PAGESZ ๐ - AT_PHDR ๐
- AT_
PHENT ๐ - AT_
PHNUM ๐ - AT_
RANDOM ๐
Functionsยง
- generate_
aux_ ๐random_ seed - Performs the generate aux random seed operation.
- read_
exec_ ๐image - Read an executable image, borrowing static initfs bytes when available.
- read_
string_ ๐array - Reads string array.
- setup_
user_ ๐stack - Performs the setup user stack operation.
- sys_
execve - SYS_PROC_EXECVE (301): replace current process image. On success, does not return. On failure, returns an appropriate error code. This is the main syscall handler for execve, which performs the entire execve sequence:
- write_
bytes_ ๐to_ as - Writes bytes to as.
- write_
u64_ ๐to_ as - Writes u64 to as.