Barrelfish
Functions
spawn.h File Reference

Functions

errval_t spawn_symval_register (const char *binary, uint32_t idx, const char *symname, genvaddr_t addres)
 registers a found symbol with octopus for later retrieval More...
 
errval_t spawn_symval_lookup (const char *binary, uint32_t idx, char **ret_name, genvaddr_t *ret_addr)
 executes a lookup query on octopus to obtain the symbol More...
 

Function Documentation

errval_t spawn_symval_lookup ( const char *  binary,
uint32_t  idx,
char **  ret_name,
genvaddr_t *  ret_addr 
)

executes a lookup query on octopus to obtain the symbol

Parameters
binaryname of the binary to query
idxindex of the symbol to query
ret_namereturns the name of the symbol
ret_addrreturns the address of the symbol
Returns
errval_t spawn_symval_register ( const char *  binary,
uint32_t  idx,
const char *  symname,
genvaddr_t  address 
)

registers a found symbol with octopus for later retrieval

Parameters
binarythe name of the binary
idxindex of the symbol to insert
symnamename of the symbol to insert
addressaddress of the sybol to insert
Returns
SYS_ERR_OK on success errval on error