Sample driver for 2.6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
Can anybody point me to an example of a kernel module which creates a
char. device along with all steps, including a sample program to test
the module, I mean by opening a device and writing something to it.

Somehow, a simpel device driver program that I wront didn't work. The
device was registered succesfully. I run mknod to create the device in
/dev/. I wrote a program to open the device. When  run it in normal
user mode, it throws error permission denied. When I run it in
superuser mode, I get an error "Invalid device or address"(I don't
remeber the exact sentence).

Please help me.

Deekshit M

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux