Home
last modified time | relevance | path

Searched refs:devnode (Results 1 – 1 of 1) sorted by relevance

/external/libusb_aah/libusb/os/
Dopenbsd_usb.c35 char devnode[16]; member
139 char devnode[16]; in obsd_get_device_list() local
147 snprintf(devnode, sizeof(devnode), "/dev/ugen%d.00", i); in obsd_get_device_list()
149 if ((fd = open(devnode, O_RDONLY)) < 0) { in obsd_get_device_list()
151 usbi_err(ctx, "could not open %s", devnode); in obsd_get_device_list()
171 strlcpy(dpriv->devnode, devnode, sizeof(devnode)); in obsd_get_device_list()
208 dpriv->fd = open(dpriv->devnode, O_RDWR); in obsd_open()
210 dpriv->fd = open(dpriv->devnode, O_RDONLY); in obsd_open()
215 usbi_dbg("open %s: fd %d", dpriv->devnode, dpriv->fd); in obsd_open()
288 fd = open(dpriv->devnode, O_RDONLY); in obsd_get_config_descriptor()
[all …]