diff options
author | 2010-12-30 05:10:35 +0000 | |
---|---|---|
committer | 2010-12-30 05:10:35 +0000 | |
commit | f5797c196e30c466bf79b38f96d0808409ed1342 (patch) | |
tree | 3fb6f1255a88ebb154bc3ea8086261a448b5b433 /sys/dev/usb/usbdi.h | |
parent | add a simple __va_copy inside ifdef lint, from tim van der molen. (diff) | |
download | wireguard-openbsd-f5797c196e30c466bf79b38f96d0808409ed1342.tar.xz wireguard-openbsd-f5797c196e30c466bf79b38f96d0808409ed1342.zip |
* add a process reference counting variable to struct usbd_device
* add functions to increment and decrement the reference count, and a
function to wait until the reference count is zero
ok martynas@
Diffstat (limited to 'sys/dev/usb/usbdi.h')
-rw-r--r-- | sys/dev/usb/usbdi.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h index 5996ad61c65..c7bc9a4c09e 100644 --- a/sys/dev/usb/usbdi.h +++ b/sys/dev/usb/usbdi.h @@ -1,4 +1,4 @@ -/* $OpenBSD: usbdi.h,v 1.36 2010/12/06 04:25:27 jakemsr Exp $ */ +/* $OpenBSD: usbdi.h,v 1.37 2010/12/30 05:10:35 jakemsr Exp $ */ /* $NetBSD: usbdi.h,v 1.62 2002/07/11 21:14:35 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/usbdi.h,v 1.18 1999/11/17 22:33:49 n_hibma Exp $ */ @@ -168,6 +168,10 @@ int usbd_ratecheck(struct timeval *last); int usbd_is_dying(usbd_device_handle); void usbd_deactivate(usbd_device_handle); +void usbd_ref_incr(usbd_device_handle); +void usbd_ref_decr(usbd_device_handle); +void usbd_ref_wait(usbd_device_handle); + /* An iterator for descriptors. */ typedef struct { const uByte *cur; |