D
D
Danil Tunev2018-08-25 20:17:53
System administration
Danil Tunev, 2018-08-25 20:17:53

How to write a driver in linux?

I dug around in the net, I realized that drivers are like linux kernel modules. And this was followed by advice on adding the source code to folders to recompile the entire system! (The meaning is clear!) But isn't there a simpler mechanism?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Sharapenkov, 2018-08-25
@sM0kfyz

https://stepik.org/course/2051

P
pfg21, 2018-08-25
@pfg21

The Linux driver can be compiled as a kernel module and connected online using the modprobe command.
the lsmod command will show how many "module" drivers are installed on the system.
it is quite possible to distribute kernel modules in a separate package (and in your own repository) and install them into the system as needed. see virtualbox kernel modules for an example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question