listdemo.c.pdfVIP

  • 5
  • 0
  • 约5.07千字
  • 约 16页
  • 2015-10-27 发布于安徽
  • 举报
listdemo.c.pdf

listdemo.c // inc lude kerne l head files # inc lude linux/ init.h # inc lude linux/module.h # inc lude linux/ list.h // licensed under BSD/GPL MODULE_LICENSE (Dual BSD/GPL) ; #define EMPLOYEE_NUMBEROF5 stat ic struct list_head employee_ list ; struct employee { char name[ 20 ]; int number; int salary; struct list_head list ; }; stat ic struct employee *employeep = NU LL; stat ic struct employee *employeep_tmp = NULL; stat ic struct list_head *pos = NULL; // init ialize module funct ion stat ic int __ init listdemo_ init (vo id) { int i; printk (KERN_ALERT Entr

文档评论(0)

1亿VIP精品文档

相关文档