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 /share/man | |
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 'share/man')
-rw-r--r-- | share/man/man9/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index ce90d7e..30cb503 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -239,6 +239,7 @@ MAN= accept_filter.9 \ printf.9 \ prison_check.9 \ priv.9 \ + proc_rwmem.9 \ pseudofs.9 \ psignal.9 \ random.9 \ @@ -1340,6 +1341,8 @@ MLINKS+=printf.9 log.9 \ printf.9 uprintf.9 MLINKS+=priv.9 priv_check.9 \ priv.9 priv_check_cred.9 +MLINKS+=proc_rwmem.9 proc_readmem.9 \ + proc_rwmem.9 proc_writemem.9 MLINKS+=psignal.9 gsignal.9 \ psignal.9 pgsignal.9 \ psignal.9 tdsignal.9 |