Altering copy_to_user buffer contents

Reply

Join Date: Oct 2004
Posts: 29
Reputation: trashed is an unknown quantity at this point 
Solved Threads: 0
trashed trashed is offline Offline
Light Poster

Altering copy_to_user buffer contents

 
0
  #1
Jan 5th, 2006
hi.
i am developing a small module for the linux 2.6.14 kernel.
so far i have been able to create the character devices that will contain any kind of char data i send them.

for example, if i type
echo HELLO WORLD > /dev/vale0
and then
cat < /dev/vale0
then the output will be
HELLO WORLD

but now i would like to alter the result of the last cat comment.
let's say i want to swap the letter O with the letter X so that the output will be:

cat < /dev/vale0

HELLX WXRLD

i suppose the main task is to modify the copy_to_user buffer, but I have absolutely no idea of doing it.
any suggestion will be gladfully accepted.

thanks guys
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Kernels and Modules Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC