Example #1
0
static void __exit
emf_module_exit(void)
{
	/* Call the common code global exit function */
	emfc_module_exit();

	/* Clean up the instances and exit */
	sock_release(emf->nl_sk->sk_socket);
	emf_instances_clear(emf);
	OSL_LOCK_DESTROY(emf->lock);
	MFREE(NULL, emf, sizeof(emf_struct_t));

	return;
}
Example #2
0
static void __exit
emf_module_exit(void)
{
	/* Call the common code global exit function */
	emfc_module_exit();

	/* Clean up the instances and exit */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
	sock_release(emf->nl_sk->sk_socket);
#else
	sock_release(emf->nl_sk->socket);
#endif
	emf_instances_clear(emf);
	OSL_LOCK_DESTROY(emf->lock);
	MFREE(NULL, emf, sizeof(emf_struct_t));

	return;
}