[Ilugc] file into special file?

  • From: itmani@xxxxxxxxxxx (Manikandan P.)
  • Date: Mon, 9 Dec 2002 11:18:33 -0600

-l ,the access permission displayed for the such files
starts with letter 'c' ,but here the program written
is stored as normal file.

The program u have written has to be compiled as a kernel 
module .as you are writing a device driover you have to create 
the device file for that using  mknod .b4 you do that get the device's
major no and minor no and the type of the device 'c' | 'b' 

can anyone plz tell me how to make this sample code
for driver as special file and pile and how to link it
with kernel .

compile the code and insmod the  testdata.o file which resulted 
from the compilation. now try reading/writing/whatever from the device


Happy Hacking
Manikandan P.


Other related posts: