From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 15 Jan 2007 17:08:38 +0000 Subject: Re: [udev]Maximum device name length Message-Id: <20070115170838.GA19957@kroah.com> List-Id: References: <44795.208.250.32.6.1168867863.squirrel@192.168.175.202> In-Reply-To: <44795.208.250.32.6.1168867863.squirrel@192.168.175.202> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Mon, Jan 15, 2007 at 08:31:03AM -0500, Jayjitkumar Lobhe wrote: > Dear All, >=20 > I am new to writting the UDEV rules. I have one query below: >=20 > - What is the maximum length of the device name that can be set using UDEV > rules? >=20 > I tried creating the device directly under /dev/directory. So the device > file that could be created was 255 characters(kernel specs I guess > i.e.NAME_MAX) >=20 > But I tried to create the device by giving sub-directories under /dev/ as > : /dev/aaa/bbb/ccc/...../abc. I could create only upto 237 or so. Why would this limit ever get close to being reached? Why do you want to know the max size? Are you using such long paths for a real device name? thanks, greg k-h ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel