All Questions
8 questions
1
vote
1
answer
160
views
Why we actually use Open and Release in a kernel module programming ? what is the calling pattern of these module?
Why we actually use Open and Release in a kernel module programming ? what is the calling pattern of these module ?
I have read the kernel module programming book. and i cant able to clear these ...
1
vote
2
answers
3k
views
How to open another device in a linux module?
For example , I have a '/dev/a' as a cdev.
Now I want to write a module 'b' and before 'b' is registered , I need to send a message to 'a' so that 'a' will be started.
I used to do it by ioctl() in an ...
0
votes
1
answer
643
views
Please help me to make this fake character linux device driver work
Hello I am trying to write to a fake char device driver using:
echo > /dev/
and reading it using:
cat /dev/
My problem is that I am getting continuously the first character written printed on ...
1
vote
1
answer
761
views
Beginner Device Driver Development Linux
I am a newbie on driver development in linux. I've read some books about this.
I started like everyone (I think) with "Hello World" example but I want to make more. I found this code in a book:
#...
4
votes
2
answers
9k
views
Step to build a built in kernel module?
I can build a loadable module and it is working with the application successfully. Now I'm trying to include this driver in kernel driver folder as a built-in driver. But when i tried this, there is ...
2
votes
1
answer
211
views
Is it possible to have 2 kernel module linked to the same /dev/device?
I want to simulate an expensive device by a software mockup (we call it (B)) interacting with /dev/device in place of the real device
Currently a kernel module already exists to manage the real ...
2
votes
2
answers
4k
views
ARM char device driver initialization isn't creating /dev/ file
I am writing a driver for the GPIO pins on an ARM platform.
My driver works correctly and I've avoided the problem until
now by manually mknod'ing a device file.
my initialization code:
static int ...
16
votes
2
answers
18k
views
How to write Linux driver module call/use another driver module?
I'm developing a Linux driver loadable module and I have to use another device in my driver.(kind of driver stacked on another driver)
How do I call/use another driver in my driver? I think they are ...