I am modifying some dated code (from year 2011; see here) that accesses a USB endpoint in the path:/sys/class/usb_endpoint/usbdevBUS.DEVICE_epENDPOINT/devicewhere BUS, DEVICE, and ENDPOINT vary.However, my Linux setup (Slackware 14.2; kernel 4.4.14) doesn't have paths of this form.How do I access USB endpoints with recent Linux kernels?
How do I access USB endpoints with recent Linux kernels?
linux kernel;usb;devices;usb device
They are under /sys/bus/usb.For example,ls /sys/bus/usb/devices/1-0\:1.0/ep_81/bEndpointAddress  bLength       direction  power  ueventbInterval         bmAttributes  interval   type   wMaxPacketSize