By default, the function uses the traditional Unix file system interface to access files (open(3), read(3) and fstat(3)) so only a schedulable task could use them, in the case of a service, see LOADOPT_BOOTFS
This function loads an ELF file into an address space. With LOADOPT_BOOTFS option, this function is able to look in the in core boot file system.
Note in LOADOPT_BOOTFS mode, the in core memory elf headers are used to store some values (e.g where sharable sections are loaded in physical memory). In traditional Unix file system this is impossible so we use prop server to store the location of them.
address space of where to load |
path of the executable |
address to load the file (LOADOPT_AS_IS) or -1 |
loading options |
entry point of the exe |