Using a module

Roibert

New Member
Joined
Sep 15, 2018
Messages
5
Reaction score
0
Credits
32
Dear forum

I find a module for a specific application named adsxx,c ..It is a character module.

Im able to compile this module ,getting the adsxx.ko,
I understand most of this module, and Im also able to interract with him from -user space-, using the open() read() and write ,ioctl() ecc system call .

What is not clear to me is the path im using in the open() sistem call… I must use /dev /adsxx_cdev

So basically I have 2 question:

1)how come this module is arrived there ? I did not copied there…
I copied the .ko under /lib/modules / ..version kernel../kernel/drivers/spi

2)What is the difference beetwen a module and a driver, when I install them..
I know a module could have generic roudine, and a driver is driving some hardware (a controller)
They are both module ?

Thanks in advance for your time

Roberto
 

Members online


Latest posts

Top