From mboxrd@z Thu Jan 1 00:00:00 1970 From: daniel.baluta@gmail.com (Daniel Baluta) Date: Mon, 9 May 2011 14:35:56 +0300 Subject: char driver error In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org > 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.