Re: char driver error

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

 



> i create a character special file using mknod in /dev directory.
>
> i try to write data to my file by" echo -n "abcd" > /dev/memory "
>
> and when i try to read from that file i get  the last char was written
> to that file that is "d"

Hello Aravind,

Can you post the output for:
$ strace -n "abcd" > /dev/memory
$ strace cat /dev/memory a

thanks,
Daniel.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[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