src/sys/pm/name/main.c
/**
 * @brief Initializes the name server.
 */
@brief Initializes the name server.
@brief Initializes the name server .
static void do_name_init(void)
{
	for (int i = 0; i < NANVIX_NODES_NUM; i++)
	{
		names[i].nodenum = i;
		ustrcpy(names[i].name, "");
	}
	ustrcpy(names[NAME_SERVER_NODE].name, "/io0");
	uassert((inbox = stdinbox_get() >= 0));
	uprintf("[nanvix][name] server alive");
	uprintf("[nanvix][name] attached to node %d", knode_get_num());
	uprintf("[nanvix][name] listening to inbox %d", inbox);
	uprintf("[nanvix][name] syncing in sync %d", stdsync_get());
}
static void do_name_init ( void ) { for ( int i = 0 ; i < NANVIX_NODES_NUM ; i ++ ) { names [ i ] . nodenum = i ; ustrcpy ( names [ i ] . name , " " ) ; } ustrcpy ( names [ NAME_SERVER_NODE ] . name , " " ) ; uassert ( ( inbox = stdinbox_get ( ) >= 0 ) ) ; uprintf ( " " ) ; uprintf ( " " , knode_get_num ( ) ) ; uprintf ( " " , inbox ) ; uprintf ( " " , stdsync_get ( ) ) ; }
@brief Initializes the name server.
@brief Initializes the name server .
/* Initialize lookup table. */ /* Unblock spawner. */