unresolved symbol Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
 I write a simple program ,it works wrong!!!
program:
#include <linux/module.h>
#include <linux/wait.h>
#include <linux/init.h>
#include <linux/sched.h>
MODULE_LICENSE("GPL");
 
static int tms9914_init_module(void)
{
 wait_queue_head_t wait;
 int con=1;
 init_waitqueue_head(&wait);
 if(wait_event_timeout(wait,con,100)==0)
  {
   printk("gpib command wait interrupted\n");
   
  }
 return 0;
}
static void tms9914_exit_module(void)
{
}
module_init( tms9914_init_module );
module_exit( tms9914_exit_module );
problem:unresolved symbol wait_event_timeout
 
why???????????
 
 



已 经 超 过 100 万 台 电 脑 安 装 了 网 易 有 道 免 费 英 汉 词 典 , 点 击 此 处 可 以 快 速 下 载

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux