procfs: add support for <pid>/mem files and ad hoc fix for memory incoherency.

This commit is contained in:
Naoki Hamada
2014-09-16 10:03:00 +09:00
parent e2dc359ba7
commit d7436652bf
4 changed files with 78 additions and 15 deletions

View File

@ -251,6 +251,7 @@ struct procfs_read {
unsigned long pbuf; /* physical address of the host buffer (request) */
unsigned long offset; /* offset to read (request) */
int count; /* bytes to read (request) */
int error; /* non-zero if below fields are invalid. (answer) */
int eof; /* if eof is detected, 1 otherwise 0. (answer)*/
int ret; /* read bytes (answer) */
int newcpu; /* migrated new cpu (answer) */