Re: Q: Interfacing to driver

Jan Hudec
2002-02-25T09:04:46Z

> I have created a driver for a custom board. This driver exports the
> functions that I need to access from my user programs to control the
> card. How do I declare and call this driver function within my user
> code so that it will call the device driver function?
> TIA

Exporting makes symbol available to other kernel modules.
You need to register char device or proc entry and define ioctl for it to
call functions you need. You may define read and write if you can define
kind of a comunication protocol.

--------------------------------------------------------------------------------
- Jan Hudec `Bulb' <bulb@ucw.cz>