May 9, 2011
12:08 p.m.
OK. See how write and read works.
$strace echo -n "abcd" > /dev/memory(/home/aravind/me write(1, "abcd", 4) = 1 write(1, "bcd", 3) = 1 write(1, "cd", 2) = 1 write(1, "d", 1) = 1
$ strace cat /dev/memory(/home/aravind/memory)
read(3, "d", 32768) = 1 write(1, "d", 1d) = 1
Please allocate space for more than 1 char, and also correct memory_write tmp=buf+count-1; -> tmp=buf+*f_ps-1; thanks, Daniel.
5577
Age (days ago)
5577
Last active (days ago)
0 comments
1 participants
participants (1)
-
Daniel Baluta