sir,
i can not compile the program given below
#include
#include

static struct file_operations fops = {
open : NULL,
read : NULL,
write : NULL,
};

static char *name = "foo";
static int major;
int init_module(void){
major = register_chrdev( 0, name,&fops);
printk("registered =%d\n,major);
return 0;
}

void cleanup_module(void){
printk("cleaning ..\n");
unregister_chrdev(major,name);
}


i compiled using GCC
cc -c -O -DMODULE -D__KERNEL__module mo9.c -I/usr/linux -2.4.22
-1.2115.nptl/include
errors are mo9.c :5 variable 'fops' has intializer but incomplete
type
mo9.c :6 unknown field 'open' specifier in
intializer
mo9.c :7 unknown field 'read ' '' ''
mo9.c : 8 unknown field 'wrtie ' '''
''
mo9.c :5 storage size of 'fops' is not known


plz.help me

naveen davis
naveendavisv@gmail.com