File: README.Debian

package info (click to toggle)
libusb 2%3A0.1.12-25
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,312 kB
  • ctags: 1,345
  • sloc: sh: 8,374; ansic: 3,271; cpp: 960; makefile: 226
file content (31 lines) | stat: -rw-r--r-- 1,337 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
libusb for Debian
-----------------

libusb uses a pseudo-filesystem known as 'usbdevfs` or 'usbfs` to access 
the USB devices connected to your machine. This filesystem must be mounted
under /proc/bus/usb for libusb to work.

It could be done using the following command:
	mount -t usbfs none /proc/bus/usb

An alternative and more permanent method would be to add
	none /proc/bus/usb usbfs defaults 0 0
to your /etc/fstab file. It will mount the usbfs for you automatically at 
boot time ; only root will be able to access the USB devices with this 
setup.

You can then issue `cat /proc/bus/usb/devices` to extract USB device 
information, and user mode drivers can use usbfs to interact with USB 
devices.

Several mount options are available, that allow you to set the permissions 
on the files created under /proc/bus/usb so that non-root users can use 
libusb applications:
 - devuid=xxx, devgid=xxx, devmode=xxx respectively set the uid, the gid
   and the mode of the devices files, ie /proc/bus/usb/BBB/DDD
 - busuid=xxx, busgid=xxx, devmode=xxx respectively set the uid, the gid 
   and the mode of the bus files, ie /proc/bus/usb/BBB
 - listuid=xxx, listgid=xxx, listmode=xxx respectively set the uid, the gid
   and the mode of /proc/bus/usb/devices

 -- Aurelien Jarno <aurel32@debian.org>, Sun, 21 Mar 2004 01:01:44 +0100