src/libruntime/rmem/cache.c
/**
 * @todo TODO: provide a detailed description for this function.
 */
@todo TODO: provide a detailed description for this function.
@todo TODO : provide a detailed description for this function .
int nanvix_rcache_select_write(int num)
{
	cache_time++;
	switch (num)
	{
		case RMEM_CACHE_WRITE_THROUGH:
		case RMEM_CACHE_WRITE_BACK:
			cache_policy = num;
			break;
		default:
			return (-EFAULT);
	}
	return (0);
}
int nanvix_rcache_select_write ( int num ) { cache_time ++ ; switch ( num ) { case RMEM_CACHE_WRITE_THROUGH : case RMEM_CACHE_WRITE_BACK : cache_policy = num ; break ; default : return ( - EFAULT ) ; } return ( 0 ) ; }
@todo TODO: provide a detailed description for this function.
@todo TODO : provide a detailed description for this function .