1

I want to use the ds2482 kernel module/driver but I'm struggling to find an example to start with. I've googled many searches but I swamped with git trees and source trees.

I've loaded it OK and it shows with lsmod.

What I'm looking for is some c code and a header file. The header file in the kernel source is a blank file so I'm really at a loss at the moment.

You may ask why not use the ow system, the reason is that I want to control the timing of the readings.

So I any one could point me in the right direction I'd be really happy.

1

You can probably use these functions which are shown in this document

If you want to see kernel code in your system you have to install/download kernel source package.

You should check this Kernel Space - User Space Interfaces document for kernel space - user space interactions.

  • I'm not getting anywhere. I have the code on my system and I have successfully been able to cross compile it on a PC.The link you gave me is a good description of the module itself. The only header file ds2482.h I have found in the linux source is an empty file. Are there any examples/tutorials of using a linux module from a c application any where – AndyNC Nov 1 '13 at 13:07
1

If you want to use the module you can just load it up with modprobe

$ sudo modprobe ds2482

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.