[SOLVED] how can C code access device driver?

Status
Not open for further replies.

spartekus

Member level 5
Joined
May 27, 2010
Messages
81
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Duisburg, Germany
Activity points
1,918
Hi everyone,

i want to write a device driver (in linux), which has functions such as "write_memory" "read_memory", but i want to decide in C, when these functions will work.
How can C code control device driver?
thanks a lot!

best regards
 

The C code can control the devices. The only requirement is you should write the code for kernel space.
 

thank you srizbf
do you know any link for tutorial or example, i can read more about it? It would be so usefull.
 

Hello spartekus. A driver for what device? Do you want to develop a driver or do an API? There is a different. The device driver is a layer interface between the hardware and an aplication like SO and an API it's an interface layer which brings abtraction to programers
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…