From mboxrd@z Thu Jan 1 00:00:00 1970 From: aravind1123@gmail.com (Aravind Vijayan) Date: Mon, 9 May 2011 16:56:48 +0530 Subject: char driver error Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi all, Let me begin this post with thanx all to whom help me on previous problem.I have completed jobs such as writing,making,inserting the module. 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" here is my code:http://pastebin.com/9YsJetek