summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2010-09-01 01:38:12 +0000
committerdlg <dlg@openbsd.org>2010-09-01 01:38:12 +0000
commitc2235760f67a6ea8f9fe4707648ad8733ba07844 (patch)
tree75b17a5f48525e09f455885adc12b59d45648758 /lib/libssl/src
parentAdd missing prototype. (diff)
downloadwireguard-openbsd-c2235760f67a6ea8f9fe4707648ad8733ba07844.tar.xz
wireguard-openbsd-c2235760f67a6ea8f9fe4707648ad8733ba07844.zip
make struct bufq a member of the softc for devices that use it,
rather than it being a pointer to something that needs to be allocated at attach. since all these devices need a bufq to operate, it makes sense to have it allocated as part of the softc and get bufq_init to just initialise all its fields. it also gets rid of the possibility that you wont be able to allocate the bufq struct during attach, which is something you dont want to happen. secondly, it consistently implements a split between wrapper functions and the per discipline implementation of the bufq handlers. it consistently does the locking in the wrappers rather than doing half in the wrappers and the other half in the implementations. it also consistently handles the outstanding bufq bq pointer in the wrappers. this hides most of the implementation inside kern_bufq.c. the only stuff left in buf.h is for the bits each implementation needs to put inside struct buf. tested by thib@ krw@ and me ok thib@ matthew@ no objection from krw@
Diffstat (limited to 'lib/libssl/src')
0 files changed, 0 insertions, 0 deletions