LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   device driver (https://www.linuxquestions.org/questions/linux-hardware-18/device-driver-40784/)

yanw 01-08-2003 08:54 PM

device driver
 
Hi
I'm trying to write a device driver for a parallel port camera on a box running linux 2.4.18-3. However I seem to get an error that the structure "file_operations" is not found in <linux/fs.h> on compilation and that the file <asm/uaccess.h> does not exist. Does anyone know why this may be?

vladkrack 01-23-2003 09:00 AM

That files are use to get some functions you are using, in that case your fs.h dont possess a part that is used in the compilation process, and it's possible that uaccess.h is in another place than specified in the Makefile. That files are part of the kernel-source, and be in places like:
/usr/src/linux-<version>/include/linux/fs.h
/usr/src/linux-<version>/pcmcia-cs-3.1.30/include/asm/uaccess.h

Hope that helps ...


All times are GMT -5. The time now is 08:38 AM.