Driver on Linux

Wolfgang Grandegger wolfgang.grandegger at
Sat Jun 28 03:24:52 EST 2003

On 06/27/2003 07:10 PM Christophe.LINDHEIMER at wrote:
> Hi.
> I am working on a PPC860.
> I have developped two drivers.
> The driver 2 needs to use functions that are in driver 1.
> driver 1 is /dev/visu.
> I thought I could make fd=open("/dev/visu", 0) in init of the driver 2 but I
> get ooops.

For file access within the kernel see for example:

> I also need to make

> I also need to make something like ioctl(fd, IO_Special... )but the function
> ioctl is unknown in the kernel.
> What is the right way to work when you need to do that ?

Using file access in the kernel is usually a bad thing. I think it's
easier and more straightforward to provide a small set of exported
kernel functions which the second (driver) module can use.

Hope it helps.


** Sent via the linuxppc-embedded mail list. See

More information about the Linuxppc-embedded mailing list