Example #1
0
static void __exit px_hotspot_exit(void)
{
#if 0
	free_dsa();
	misc_deregister(&pxhs_sample_d);
	misc_deregister(&pxhs_module_d);
	misc_deregister(&pxhs_dsa_d);
#endif
	misc_deregister(&px_hotspot_d);

	return;
}
Example #2
0
static void __exit px_tp_exit(void)
{
#if 0
	free_dsa();

	misc_deregister(&pxtp_event_d);
	misc_deregister(&pxtp_module_d);
	misc_deregister(&pxtp_dsa_d);
#endif
	misc_deregister(&px_tp_d);

	return;
}
Example #3
0
static int allocate_dsa(void)
{
	free_dsa();

	g_dsa = __vmalloc(sizeof(struct px_tp_dsa),
                          GFP_KERNEL,
                          pgprot_noncached(PAGE_KERNEL));

	if (g_dsa == NULL)
	{
		return -ENOMEM;
	}

	memset(g_dsa, 0, sizeof(struct px_tp_dsa));

	return 0;
}