| | |
Altering copy_to_user buffer contents
![]() |
•
•
Join Date: Oct 2004
Posts: 29
Reputation:
Solved Threads: 0
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
and then
then the output will be
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:
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
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
cat < /dev/vale0
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
![]() |
Similar Threads
- StreamReader and Position (C#)
- StreamReader and Position (In VB) (VB.NET)
- Mailing issue (PHP)
- Hijack This log for Buffer Overrun error.. (Viruses, Spyware and other Nasties)
- Implementing a C++ class for a ring buffer (C++)
- buffer cache (minix) (Kernels and Modules)
- Problem with Client-Server Socket Connection (Java)
- "Buffer run detected" (Viruses, Spyware and other Nasties)
- Realtime application (Assembly)
Other Threads in the Kernels and Modules Forum
- Previous Thread: Sun Release Latest Server Technology
- Next Thread: buffer cache (minix)
| Thread Tools | Search this Thread |





