static int __init my_init(void)
{
	int rc = my_generic_init();
	if (!rc)
		get_irqs();
	return rc;
}
Example #2
0
static int __init my_init (void)
{
    spin_lock_init (&nsleepers_lock);
    atomic_set (&data_ready, 0);
    atomic_set (&nsleepers, 0);
    return my_generic_init ();
}
Example #3
0
static int __init my_init (void)
{
    atomic_set (&cond, 1);
    if (!(tsk = kthread_run (thr_fun, (void *)&my_data, "thr_fun"))) {
        printk (KERN_INFO "Failed to generate a kernel thread\n");
        return -1;
    }
    return my_generic_init ();
}
static int __init my_init(void)
{
	struct my_dat *data = (struct my_dat *)&my_data;

	/* COMPLETE ME */
	/* initialize the workqueue here */
	/* END TRIM */


	return my_generic_init();
}
Example #5
0
static int __init my_init(void)
{
	atomic_set(&nevents, 0);
	return my_generic_init();
}
Example #6
0
static int __init my_init (void)
{
    atomic_set (&data_ready, 0);
    return my_generic_init ();
}