示例#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;
}
示例#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;
}
示例#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;
}
示例#4
0
文件: ofp_uma.c 项目: biddyweb/ofp
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;
}
示例#5
0
文件: ofp_stat.c 项目: babubalu/ofp
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;
}