I'm new to this whole kernel programming thing but am slowly getting
through all the material on it.
The problem that I'm having is that when I try to open the node in /dev/
I get an error saying
Unable to open /dev/sample: No such device or address
This is working on the example char-driver file found on the wiki. The
only thing that I've had to remove is the class stuff, not sure why the
compiler objected to this but it did. As I understand these
instructions create the node in /dev. So I've done this manually using,
with the numbers coming from /var/run/messages
mknod sample c 251 0
I've performed the necessary (?) chmod and chgrp commands as suggested
in the Linux Device Drivers book but to no avail.
Am I missing something brutally obvious?
From: Dave Hylands <dhylands@gm...> - 2006-04-12 18:57:39
> I'm new to this whole kernel programming thing but am slowly getting
> through all the material on it.
> The problem that I'm having is that when I try to open the node in /dev/
> I get an error saying
> Unable to open /dev/sample: No such device or address
So what does
ls -l /dev/sample
Did you insmod the .ko file?
Vancouver, BC, Canada
Get latest updates about Open Source Projects, Conferences and News.