Re: Q: Interfacing to driver

From: Jan Hudec (bulb@ucw.cz)
Date: Mon Feb 25 2002 - 04:04:19 EST


> 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>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Feb 28 2002 - 21:00:13 EST