src/sys/pm/name/main.c
/**
 * @brief Remove a name
 *
 * @param name Name of the process to unlink.
 *
 * @returns Upon successful registration the new number of name registered
 * is returned. Upon failure, a negative error code is returned instead.
 */
@brief Remove a name
@param name Name of the process to unlink.

@returns Upon successful registration the new number of name registered
is returned. Upon failure, a negative error code is returned instead.
@brief Remove a name @param name Name of the process to unlink . @returns Upon successful registration the new number of name registered is returned . Upon failure a negative error code is returned instead .
static int do_name_unlink(char *name)
{
	int i = 0;
	name_debug("unlink name=%s", name);
	while (i < NANVIX_NODES_NUM && ustrcmp(name, names[i].name))
	{
		i++;
	}
	if (i < NANVIX_NODES_NUM)
	{
		ustrcpy(names[i].name, "");
		return (--nr_registration);
	}
	return (-ENOENT);
}
static int do_name_unlink ( char * name ) { int i = 0 ; name_debug ( " " , name ) ; while ( i < NANVIX_NODES_NUM && ustrcmp ( name , names [ i ] . name ) ) { i ++ ; } if ( i < NANVIX_NODES_NUM ) { ustrcpy ( names [ i ] . name , " " ) ; return ( -- nr_registration ) ; } return ( - ENOENT ) ; }
@brief Remove a name
 @param name Name of the process to unlink.
@brief Remove a name @param name Name of the process to unlink .
/* Search for portal name. */