awais
February 5th, 2006, 06:46 AM
Actually I am writing a device driver in ubuntu. And I have a problem while initializing the struct of file_operations. When I compile the code listed below like this
gcc -c UsbDrv.c
then an error came like this
the struct file_operations is of incomplete type
So, if any one knows how to fix the problem, kindly reply me.
struct file_operations fops= {
read_device,
write_device,
release_device
};
gcc -c UsbDrv.c
then an error came like this
the struct file_operations is of incomplete type
So, if any one knows how to fix the problem, kindly reply me.
struct file_operations fops= {
read_device,
write_device,
release_device
};