following is a simple code i have written to queue a task. the code
gets compiled but while inserting it gives the error
unresolved symbol tqueue_lock
I have included a variety of header files.... do i need to give some
compile time linking ? the tqueue_lock does not exit in my symbol
table (ksyms -a) . how do i put that in it ?
*************************************************************************
#define MODULE
#include<linux/module.h>
#include<linux/sched.h>
#include<linux/tqueue.h>
#include<linux/netdevice.h>
#include<linux/spinlock.h>
#include<linux/param.h>
#include<linux/interrupt.h>
struct tq_struct mytask1,mytask2;
void print_mess1()
{
printk("<1> in timer function mess1\n");
void print_mess2()Quote:}
{
printk("<1> in timer function mess2\n");
int put_task()Quote:}
{
/* mytask1.routine=print_mess1;
mark_bh(TIMER_BH);
queue_task(&mytask1,&tq_timer);
*/
mytask2.routine=print_mess2;
mytask2.data=NULL;
mark_bh(IMMEDIATE_BH);
queue_task(&mytask2,&tq_immediate);
return 0;
int init_module(void)Quote:}
{
int i;
printk("<1> inserting module for task\n");
i = put_task();
return 0;
}
void cleanup_module(void)
{
printk("<1> unloading today\n");
}