src/sys/mm/rmem/main.c
/**
 * @brief Remote memory server.
 *
 * @returns Upon successful completion zero is returned. Upon failure,
 * a negative error code is returned instead.
 */
@brief Remote memory server.
@returns Upon successful completion zero is returned. Upon failure,
a negative error code is returned instead.
@brief Remote memory server . @returns Upon successful completion zero is returned . Upon failure a negative error code is returned instead .
int do_rmem_server(void)
{
	int ret;
	uprintf("[nanvix][rmem] booting up server");
	if ((ret = do_rmem_startup()) < 0)
		goto error;
	uprintf("[nanvix][rmem] server alive");
	if ((ret = do_rmem_loop()) < 0)
		goto error;
	uprintf("[nanvix][rmem] shutting down server");
	if ((ret = do_rmem_shutdown()) < 0)
		goto error;
	return (0);
error:
	return (ret);
}
int do_rmem_server ( void ) { int ret ; uprintf ( " " ) ; if ( ( ret = do_rmem_startup ( ) ) < 0 ) goto error ; uprintf ( " " ) ; if ( ( ret = do_rmem_loop ( ) ) < 0 ) goto error ; uprintf ( " " ) ; if ( ( ret = do_rmem_shutdown ( ) ) < 0 ) goto error ; return ( 0 ) ; error : return ( ret ) ; }
@brief Remote memory server.
@brief Remote memory server .
/* Unblock spawner. */