Re: [PATCH 2/3] docs-rst/usb: usb/devices is now at /sys/kernel/debug/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 16 Apr 2017, Mauro Carvalho Chehab wrote:

> The /proc/bus/usb/devices got moved to sysfs. It is now
> sitting	at:
>         /sys/kernel/debug/usb/devices
> 
> Fix the old references at the USB documentation

Many of the things you changed are still out of date.

> Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxxx>
> ---
>  Documentation/driver-api/usb/usb.rst | 14 +++++++-------
>  Documentation/usb/acm.txt            |  2 +-
>  Documentation/usb/gadget_serial.txt  |  4 ++--
>  Documentation/usb/proc_usb_info.txt  | 20 ++++++++++----------
>  4 files changed, 20 insertions(+), 20 deletions(-)
> 
> diff --git a/Documentation/driver-api/usb/usb.rst b/Documentation/driver-api/usb/usb.rst
> index 6824089ef4c8..036e77038d42 100644
> --- a/Documentation/driver-api/usb/usb.rst
> +++ b/Documentation/driver-api/usb/usb.rst
> @@ -233,7 +233,7 @@ What files are in "usbfs"?
>  
>  Conventionally mounted at ``/proc/bus/usb``, usbfs features include:

This whole section is highly misleading.  usbfs no longer exists as a 
filesystem.  Instead, the files which used to be part of usbfs have 
either moved to debugfs (/sys/kernel/debug/usb/devices) or are 
character device nodes managed by systemctl/udev and typically created 
under /dev/bus/usb.

> @@ -299,23 +299,23 @@ invocations of *mount*, are:
>      0)
>  
>  *listgid*\ =NNNNN
> -    Controls the GID used for the /proc/bus/usb/devices and drivers
> +    Controls the GID used for the /sys/kernel/debug/usb/devices and drivers
>      files. (Default: 0)
>  
>  *listmode*\ =MMM
> -    Controls the file mode used for the /proc/bus/usb/devices and
> +    Controls the file mode used for the /sys/kernel/debug/usb/devices and
>      drivers files. (Default: 0444)
>  
>  *listuid*\ =NNNNN
> -    Controls the UID used for the /proc/bus/usb/devices and drivers
> +    Controls the UID used for the /sys/kernel/debug/usb/devices and drivers
>      files. (Default: 0)
>  
>  Note that many Linux distributions hard-wire the mount options for usbfs
>  in their init scripts, such as ``/etc/rc.d/rc.sysinit``, rather than
>  making it easy to set this per-system policy in ``/etc/fstab``.

This is all totally out of date.  usbfs is no longer a filesystem that
can be mounted.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux