public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Q: Interfacing to driver
@ 2002-02-24 23:29 David Stroupe
  2002-02-25  9:04 ` Jan Hudec
  2002-02-25 15:26 ` Zwane Mwaikambo
  0 siblings, 2 replies; 3+ messages in thread
From: David Stroupe @ 2002-02-24 23:29 UTC (permalink / raw)
  To: linux-kernel

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

-- 
Best regards,
David Stroupe
Keyed-Up Software 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Q: Interfacing to driver
  2002-02-24 23:29 Q: Interfacing to driver David Stroupe
@ 2002-02-25  9:04 ` Jan Hudec
  2002-02-25 15:26 ` Zwane Mwaikambo
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Hudec @ 2002-02-25  9:04 UTC (permalink / raw)
  To: linux-kernel; +Cc: David Stroupe

> 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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Q: Interfacing to driver
  2002-02-24 23:29 Q: Interfacing to driver David Stroupe
  2002-02-25  9:04 ` Jan Hudec
@ 2002-02-25 15:26 ` Zwane Mwaikambo
  1 sibling, 0 replies; 3+ messages in thread
From: Zwane Mwaikambo @ 2002-02-25 15:26 UTC (permalink / raw)
  To: David Stroupe; +Cc: Linux Kernel, KernelNewbies

On Sun, 24 Feb 2002, David Stroupe wrote:

> 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?

Usually done with an ioctl (Check out many of the character drivers for 
example), you oughta send these kinda questions to the kernelnewbies list 
though (CCd)

	Zwane



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-02-25 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-24 23:29 Q: Interfacing to driver David Stroupe
2002-02-25  9:04 ` Jan Hudec
2002-02-25 15:26 ` Zwane Mwaikambo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox