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/usbdivar.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/usbdivar.h')
-rw-r--r-- | sys/dev/usb/usbdivar.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/usbdivar.h b/sys/dev/usb/usbdivar.h index 2ebdb9b9d9b..f53369945ad 100644 --- a/sys/dev/usb/usbdivar.h +++ b/sys/dev/usb/usbdivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: usbdivar.h,v 1.40 2010/12/06 04:25:27 jakemsr Exp $ */ +/* $OpenBSD: usbdivar.h,v 1.41 2010/12/30 05:10:35 jakemsr Exp $ */ /* $NetBSD: usbdivar.h,v 1.70 2002/07/11 21:14:36 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/usbdivar.h,v 1.11 1999/11/17 22:33:51 n_hibma Exp $ */ @@ -125,7 +125,8 @@ struct usbd_bus { struct usbd_device { struct usbd_bus *bus; /* our controller */ struct usbd_pipe *default_pipe; /* pipe 0 */ - u_int8_t dying; /* removed */ + u_int8_t dying; /* hardware removed */ + u_int8_t ref_cnt; /* # of procs using device */ u_int8_t address; /* device address */ u_int8_t config; /* current configuration # */ u_int8_t depth; /* distance from root hub */ |