lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20120420161955.GA7090@kroah.com>
Date:	Fri, 20 Apr 2012 09:19:55 -0700
From:	Greg KH <greg@...ah.com>
To:	Anil Nair <anilcoll90@...il.com>
Cc:	Wang YanQing <Udknight@...il.com>,
	lkml <linux-kernel@...r.kernel.org>, linux-usb@...r.kernel.org
Subject: Re: [RFC]Is usb port number fixed?

<Please don't post HTML email, the mailing lists reject your messages
that way>

On Fri, Apr 20, 2012 at 09:39:37PM +0530, Anil Nair wrote:
> 
> 
>     >USB ports on a hub are all enumerated the same, but the root hubs
>     >aren't, and sometimes hubs on the same bus are not as well.
> 
>  
>   Does every device assigned a port number serially, that is in increasing
> order?

Yes.

>   If a USB port number is assigned to a USB device then are other USB devices
> able to use it,
>   if connected USB device is Disconnected?

It can, why?  USB devices don't care about their device number.

>     >But usually, things do come up in the same way all the time, so
>     >depending on your use case, you can rely on this, but it is recommended
>     >that you look for something else a bit more unique, like a serial number
>     >on a device (if it is present), if you wish to uniquely identify a
>     >device all the time.
> 
> 
>   Does the Linux Kernel keeps the history of connected devices? So that next
> time,   the same USB device get assigned the same USB port number.

No.  I think you are confusing port number with the USB device number,
both of which mean nothing to a USB device at all, and they shouldn't to
anyone else.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ