diff options
author | markj <markj@FreeBSD.org> | 2015-12-07 21:33:15 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2015-12-07 21:33:15 +0000 |
commit | f734f97f4eae5074772d9168c3337517648369ad (patch) | |
tree | 395bb015ca7c3a283ed4a6f10d9206628be6e3f3 /sys/cddl/dev | |
parent | 7f1d362dac9d67803ca7ba38b1e2fd8ff43ae14f (diff) | |
download | FreeBSD-src-f734f97f4eae5074772d9168c3337517648369ad.zip FreeBSD-src-f734f97f4eae5074772d9168c3337517648369ad.tar.gz |
Add helper functions proc_readmem() and proc_writemem().
These helper functions can be used to read in or write a buffer from or to
an arbitrary process' address space. Without them, this can only be done
using proc_rwmem(), which requires the caller to fill out a uio. This is
onerous and results in code duplication; the new functions provide a simpler
interface which is sufficient for most existing callers of proc_rwmem().
This change also adds a manual page for proc_rwmem() and the new functions.
Reviewed by: jhb, kib
Differential Revision: https://reviews.freebsd.org/D4245
Diffstat (limited to 'sys/cddl/dev')
0 files changed, 0 insertions, 0 deletions