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

Ack!!! Modules!!!



can anyone tell me if this works?

#define MODULE
#include <linux/module.h>

int init_module(void) {printk("<1>Hello World\n"); return 0;}
void cleanup_module(void) {printk("<1>Goodbye\n");}

Its from Oriellys book...  I am attempting to write a kernel module and
this was their first example..  it just gives me unresolved symbols for
printk...  Shouldn't this exist?  What am I doing :-(



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