Barrelfish
|
Client for interacting with the spawn daemon on each core. More...
Functions | |
errval_t | spawn_program_with_caps (coreid_t coreid, const char *path, char *const argv[], char *const envp[], struct capref inheritcn_cap, struct capref argcn_cap, spawn_flags_t flags, domainid_t *ret_domainid) |
Request the spawn daemon on a specific core to spawn a program. More... | |
errval_t | spawn_program (coreid_t coreid, const char *path, char *const argv[], char *const envp[], spawn_flags_t flags, domainid_t *ret_domainid) |
Request the spawn daemon on a specific core to spawn a program. More... | |
errval_t | spawn_program_on_all_cores (bool same_core, const char *path, char *const argv[], char *const envp[], spawn_flags_t flags, domainid_t *ret_domainid, coreid_t *spawn_count) |
Request a program be spawned on all cores in the system. More... | |
errval_t | spawn_kill (domainid_t domainid) |
Kill a domain. | |
errval_t | spawn_exit (uint8_t exitcode) |
Exit this domain. | |
errval_t | spawn_wait_coreid (coreid_t coreid, domainid_t domainid, uint8_t *exitcode, bool nohang) |
Wait for spawned proccess to exit on core. | |
errval_t | spawn_wait_core (coreid_t coreid, domainid_t domainid, uint8_t *exitcode, bool nohang) |
Wait for the termination of a domain on a remote core. | |
errval_t | spawn_wait (domainid_t domainid, uint8_t *exitcode, bool nohang) |
Wait for spawned proccess to exit on current core. | |
errval_t | spawn_get_domain_list (uint8_t **domains, size_t *len) |
Get the list of domains for ps like implementation. | |
errval_t | spawn_get_status (uint8_t domain, struct spawn_ps_entry *pse, char **argbuf, size_t *arglen, errval_t *reterr) |
Get the status of a domain for ps like implementation. | |
errval_t | spawn_dump_capabilities (domainid_t domainid) |
Dump capabilities for a given domain. | |
errval_t | alloc_inheritcn_with_caps (struct capref *inheritcn_capp, struct capref fdcap, struct capref sidcap, struct capref kernelcap) |
Utility function to create an inherit cnode and copy caps into it. More... | |
Variables | |
char ** | environ |
Client for interacting with the spawn daemon on each core.
errval_t alloc_inheritcn_with_caps | ( | struct capref * | inheritcn_capp, |
struct capref | fdcap, | ||
struct capref | sidcap, | ||
struct capref | kernelcap | ||
) |
Utility function to create an inherit cnode and copy caps into it.
inheritcn_capp | Pointer to capref, filled-in with location of inheritcn capability. |
fdcap | fdcap to copy into inherit cnode. |
sidcap | sidcap to copy into inherit cnode. |
kernelcap | kernelcap to copy into inherit cnode. |
SYS_ERR_OK | inherticn_capp is allocated and contains copies of the provided caps. |
errval_t spawn_program | ( | coreid_t | coreid, |
const char * | path, | ||
char *const | argv[], | ||
char *const | envp[], | ||
spawn_flags_t | flags, | ||
domainid_t * | ret_domainid | ||
) |
Request the spawn daemon on a specific core to spawn a program.
coreid | Core ID on which to spawn the program |
path | Absolute path in the file system to an executable image suitable for the given core |
argv | Command-line arguments, NULL-terminated |
envp | Optional environment, NULL-terminated (pass NULL to inherit) |
flags | Flags to spawn |
ret_domainid | If non-NULL, filled in with domain ID of program |
errval_t spawn_program_on_all_cores | ( | bool | same_core, |
const char * | path, | ||
char *const | argv[], | ||
char *const | envp[], | ||
spawn_flags_t | flags, | ||
domainid_t * | ret_domainid, | ||
coreid_t * | spawn_count | ||
) |
Request a program be spawned on all cores in the system.
same_core | Iff false, don't spawn on the same core as the caller |
path | Absolute path in the file system to an executable image suitable for the given core |
argv | Command-line arguments, NULL-terminated |
envp | Optional environment, NULL-terminated (pass NULL to inherit) |
flags | Flags to spawn |
ret_domainid | If non-NULL, filled in with domain ID of program |
count | How much programs it spawned |
errval_t spawn_program_with_caps | ( | coreid_t | coreid, |
const char * | path, | ||
char *const | argv[], | ||
char *const | envp[], | ||
struct capref | inheritcn_cap, | ||
struct capref | argcn_cap, | ||
spawn_flags_t | flags, | ||
domainid_t * | ret_domainid | ||
) |
Request the spawn daemon on a specific core to spawn a program.
coreid | Core ID on which to spawn the program |
path | Absolute path in the file system to an executable image suitable for the given core |
argv | Command-line arguments, NULL-terminated |
envp | Optional environment, NULL-terminated (pass NULL to inherit) |
inheritcn_cap | Cap to a CNode containing capabilities to be inherited |
argcn_cap | Cap to a CNode containing capabilities passed as arguments |
flags | Flags to spawn |
ret_domainid | If non-NULL, filled in with domain ID of program |
char** environ |
Environment as a pointer to a pointer rather than a pointer to an array.