Exemplo n.º 1
0
static int ofp_global_config_free_shared_memory(void)
{
	int rc = 0;

	if (ofp_shared_memory_free(SHM_NAME_GLOBAL_CONFIG) == -1) {
		OFP_ERR("ofp_shared_memory_free failed");
		rc = -1;
	}
	shm = NULL;
	return rc;
}
Exemplo n.º 2
0
static int ofp_rt_lookup_free_shared_memory(void)
{
	int rc = 0;

	if (ofp_shared_memory_free(SHM_NAME_RT_LOOKUP_MTRIE) == -1) {
		OFP_ERR("ofp_shared_memory_free failed");
		rc = -1;
	}
	shm = NULL;
	return rc;
}
Exemplo n.º 3
0
static int ofp_hook_free_shared_memory(void)
{
	int rc = 0;

	if (ofp_shared_memory_free(SHM_NAME_HOOK) == -1) {
		OFP_ERR("ofp_shared_memory_free failed");
		rc = -1;
	}
	shm_hook = NULL;
	return rc;
}
Exemplo n.º 4
0
static int ofp_uma_free_shared_memory(void)
{
	int rc = 0;

	if (ofp_shared_memory_free(SHM_NAME_UMA) == -1) {
		OFP_ERR("ofp_shared_memory_free failed");
		rc = -1;
	}
	shm = NULL;
	return rc;
}
Exemplo n.º 5
0
static int ofp_stat_free_shared_memory(void)
{
	int rc = 0;

	if (ofp_shared_memory_free(SHM_NAME_STAT)) {
		OFP_ERR("ofp_shared_memory_free failed");
		rc = -1;
	}
	shm_stat = NULL;

	return rc;
}