Uttered "Randy.Dunlap" <[EMAIL PROTECTED]>, spake thus:
> compile/build is wrong.
> a minimum 2.4 kernel build needs at least:
>
> gcc -c -D__KERNEL__ -DMODULE -O2 -nostdinc proc.c
Don't forget the kernel headers!
# gcc -c -D__KERNEL__ -DMODULE -O2 -I/usr/src/linux/include -nostdinc proc.c
and
sounak chakraborty wrote:
the code of the module that i written is as follows:
#define MODULE
#include
#include
#define MODULE_NAME "manti"
struct manti
{
char mm[20];
};
static struct proc_dir_entry *example_dir;
struct manti m1;
int init_module(void)
{
example_dir=proc_mkdir(MODULE_NAM
the code of the module that i written is as follows:
#define MODULE
#include
#include
#define MODULE_NAME "manti"
struct manti
{
char mm[20];
};
static struct proc_dir_entry *example_dir;
struct manti m1;
int init_module(void)
{
example_dir=proc_mkdir(MODULE_NAME,NULL);
if(example_dir=
3 matches
Mail list logo