problem with character driver
hi,
i have written a character driver..i have done trimming in open call...when i run an application i do like follows
[char_driver]# make
[char_driver]# insmod ./modules/lkm.c
[char_driver]# gcc app.c //my appliaction
[char_driver]# mknod node c 250 0
[char_driver]# ./a.out node
........it works fine......
however if i make another node i.e after instruction
[char_driver]# mknod node c 250 0
i type
[char_driver]# mknod node1 c 250 0
and then
[char_driver]# ./a.out node
it works
and if i type
[char_driver]# ./a.out node1
it crashes
please help....
i think it is trimming problem.....plz tell where to trim in read or open....
regards
zaffer
|