The HyperNews Linux KHG Discussion Pages

More: I have the same problem, too!

Forum: Supporting Functions
Re: Question File access within a device driver? (Paul Osborn)
Re: More I have the same problem (Mark-Andre Hopf)
Keywords: file access device driver
Date: Fri, 16 Jan 1998 11:24:59 GMT
From: Rubens (Brazil) <rjn@lopestelecom.com>

I want to write a device driver for a PCI card. I need to create a screen to the user interface, but my driver is a module that can't use functions from libc (or stdio.h). I am a student, and my teacher told me that the better way to solve this problem is to make a "special device file" in /dev directory. This device file may be accessed by the executable file (in user mode) using fopen, fread, fwrite, ... And the loadable module can access the device file through the kernel, but I don't know how. If you find some help, please contact me.

Thanks.

I hope you understand my "fantastic" English!