Return-path: Received: from xc.sipsolutions.net ([83.246.72.84]:43977 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751758AbZLIIbM (ORCPT ); Wed, 9 Dec 2009 03:31:12 -0500 Subject: Re: wireless device and udev From: Johannes Berg To: Andrey Borzenkov Cc: linux-hotplug@vger.kernel.org, "John W. Linville" , Stephen Hemminger , "Luis R. Rodriguez" , linux-wireless@vger.kernel.org In-Reply-To: <200912090654.28630.arvidjaar@mail.ru> References: <20091207172616.7470ed2b@nehalam> <1260300551.32227.1.camel@johannes.local> <20091208200504.GC16303@tuxdriver.com> <200912090654.28630.arvidjaar@mail.ru> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-6VkHAZ44OcUw0R8KUubo" Date: Wed, 09 Dec 2009 09:30:40 +0100 Message-ID: <1260347440.28424.1.camel@johannes.local> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: --=-6VkHAZ44OcUw0R8KUubo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2009-12-09 at 06:54 +0300, Andrey Borzenkov wrote: > Is it possible to distinguish between automatic system enumeration when=20 > new device is created and explicit name that user gives? Because in=20 > example above (iw phy add interface) user already supplied specific=20 > name; there is no reason for udev to (try to) mangle it. >=20 > So far the only possibility seems to check for wild card in interface=20 > name. So what about adding new event attribute NAME_AUTOGENERATED=3D(yes| > no) and simply leaving any event with NAME_AUTOGENERATED=3Dno alone in=20 > udev? Any immediate problems? This is non-trivial because it really goes through the same code paths internally. Feel free to send patches. johannes --=-6VkHAZ44OcUw0R8KUubo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIcBAABAgAGBQJLH2AtAAoJEODzc/N7+QmarOkP/iX6Bc6CtNe37ws7PIf+enl0 YLjcmdt3TzvMpZUuMrD+BWJGcfqK8rDkWwbP93LgrBAuds7cMKlhu1F2koX1PY2i fhA1QKZZxe0OEpw5j0uDVtGdSkLXIk2mPoNKIQFSYklEEBaUyl/29I3KFIoa3nBW 5rLyQurHp2zs1h6JWKqRHTRhcMDd0fsGdR4t1CcRlrhjioot4h5qap2CX89BUcnx kbuznYoz4FtzK/yjYKLBSwvFv5SnjHYU3xs+oT75ZWbw+BovLlS9VYvJuLoKE4LQ PTuVbDy0Mlwc9v77pTEdbQKoElOcYxKq1YqkKHpotjAuzgJcLx9v0o/4j0OMDJoy x/wsg+evoYW8gCyk9B6za8TUNzcLA79gnS+5fWwdG1S5ryFWz+f7hJ/l6+4snZx0 +HFLEVwWlwsTeEX3mt369MpFI4FckOQkBGnFwaQUNY2xbT3AGrlxonS6NXcK8Ntb mUN9Yq0IZDuo+D3OIaA1YsJFBVp0c8UnOhJ/DuHDClWQu02wED38TJFS79HFAcmu h90ttxCklQBvwvDf1o4pjV3UDMj2y6oAyaynkadd2sflRgrJpI5+QR/EforqJONn Dnu5pW8aZh5XGwR5vBzOj6qKmqqK+HI+hPIgcbWj4pyZ30vi+j+tW0UL/wQWeS6g guO6ZX58/qCRiVLQOIbX =FuAH -----END PGP SIGNATURE----- --=-6VkHAZ44OcUw0R8KUubo--