summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2014-07-02 00:12:34 +0000
committerdlg <dlg@openbsd.org>2014-07-02 00:12:34 +0000
commitc7a72319fe47ef78ac4bab7e60fdc2f00da60e5c (patch)
treeb2692e0362f362062b98a4de651ee0a4f364cc6a /usr.bin/mandoc/mdoc.c
parentClean up the warnings related to document structure. (diff)
downloadwireguard-openbsd-c7a72319fe47ef78ac4bab7e60fdc2f00da60e5c.tar.xz
wireguard-openbsd-c7a72319fe47ef78ac4bab7e60fdc2f00da60e5c.zip
info about pools is currently given to userland by copying each
pools struct out. however, struct pool in the kernel contains lots of things that userland probably isnt interested in, like actual mutexes, and probably shouldnt get easy access to, like pointers to kernel memory via all the lists/trees. this implements a kinfo_pool structure that has only the data that userland needs to know about. it cuts the sysctl code over to building it from struct pool as required and copying that out instead, and cuts userland over to only handling kinfo_pool. the only problem with this is vmstat, which can read kernel images via kvm, which needs some understanding of struct pool. to cope, the struct pool definition is guarded by if defined(_KERNEL) || defined(_LIBKVM) as inspired by sysctl which needs to do the same thing sometimes. struct pool itself is generally not visible to userland though, which is good. matthew@ suggested struct kinfo_pool instead of struct pool_info. the kinfo prefix has precedent. lots of people liked this.
Diffstat (limited to 'usr.bin/mandoc/mdoc.c')
0 files changed, 0 insertions, 0 deletions