About kernel module programming

From: =?ISO-8859-1?Q? (chenyp@brahms.ice.cycu.edu.tw)
Date: Sun Apr 16 2000 - 03:10:06 EST


Dear all:
I wrote a kernel module.(for test how to call the kernel function in the
kernel module)
This module call register_tcf_proto_ops() kernel function in the
init_module().
when I load this module, it appears the following error message.
"test.o: unresolved symbol register_tcf_proto_ops"
Why??
Ariel chen
============== test.c ==========================
#include<linux/module.h>
#include<linux/sched.h>
#include<linux/netdevice.h>
#include<net/pkt_sched.h>
int init_module(void)
{
  struct tcf_proto_ops *ttt;
  register_tcf_proto_ops((struct tcf_proto_ops *)ttt);
  return 0;
}
void cleanup_module(void)
{
   printk("<1>Goodbye cruel world\n");
}
==============================================

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:08 EST