aboutsummaryrefslogtreecommitdiff
path: root/lib/libkvm
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2018-07-05 13:13:48 +0000
committerBrooks Davis <brooks@FreeBSD.org>2018-07-05 13:13:48 +0000
commitf38b68ae8aadd1e3fc55f9627b41651eab2f767e (patch)
tree2532422476e51289aa873aa68c5e7b030eed8460 /lib/libkvm
parent4a7ec940e45555ef9e0398fccd83d5780857d927 (diff)
downloadsrc-f38b68ae8aadd1e3fc55f9627b41651eab2f767e.tar.gz
src-f38b68ae8aadd1e3fc55f9627b41651eab2f767e.zip
Make struct xinpcb and friends word-size independent.
Replace size_t members with ksize_t (uint64_t) and pointer members (never used as pointers in userspace, but instead as unique idenitifiers) with kvaddr_t (uint64_t). This makes the structs identical between 32-bit and 64-bit ABIs. On 64-bit bit systems, the ABI is maintained. On 32-bit systems, this is an ABI breaking change. The ABI of most of these structs was previously broken in r315662. This also imposes a small API change on userspace consumers who must handle kernel pointers becoming virtual addresses. PR: 228301 (exp-run by antoine) Reviewed by: jtl, kib, rwatson (various versions) Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D15386
Notes
Notes: svn path=/head/; revision=335979
Diffstat (limited to 'lib/libkvm')
-rw-r--r--lib/libkvm/kvm.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libkvm/kvm.h b/lib/libkvm/kvm.h
index 8c0aea009613..823e40a7c2b6 100644
--- a/lib/libkvm/kvm.h
+++ b/lib/libkvm/kvm.h
@@ -61,8 +61,6 @@ typedef __ssize_t ssize_t;
#define _SSIZE_T_DECLARED
#endif
-typedef uint64_t kvaddr_t; /* An address in a target image. */
-
struct kvm_nlist {
const char *n_name;
unsigned char n_type;