Skip to content

Commit

Permalink
Correct documentation.
Browse files Browse the repository at this point in the history
panda_virtual_memory_* and panda_physical_memory_* return
non-zero values on error.  These can be positive - in fact
in the case of panda_physical_memory_* there are only two
possible values currently, 0 and 1.
  • Loading branch information
MarkMankins authored and lacraig2 committed Aug 20, 2024
1 parent de4e69e commit 6eebe0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panda/docs/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ int panda_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf, int len, int
This function allows a plugin to read or write `len` bytes of guest physical
memory at `addr` into or from the supplied buffer `buf`. This function differs
from QEMU's `cpu_physical_memory_rw` in that it will never access I/O, only
RAM. This function returns zero on success, and negative values on failure (page not mapped).
RAM. This function returns zero on success, and non-zero values on failure (page not mapped).
```C
int panda_virtual_memory_rw(CPUState *env, target_ulong addr, uint8_t *buf, int len, int is_write);
```
Expand Down

0 comments on commit 6eebe0f

Please sign in to comment.