Skip to contentSkip to conversation

Q: Interfacing to driver

DISCUSSION David Stroupe 3 participants 3 messages Feb 24, 2002 – Feb 25, 2002

lore
Share & tools
lore
#0 lore raw

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

Signature · 3 lines
Best regards,
David Stroupe
Keyed-Up Software 
#1 lore raw
Quoted 5 lines

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' <[email protected]>

#2 lore raw
In reply to David Stroupe
Quoted 4 lines · 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?

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