linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [udev]Maximum device name length
@ 2007-01-15 13:31 Jayjitkumar Lobhe
  2007-01-15 17:08 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Jayjitkumar Lobhe @ 2007-01-15 13:31 UTC (permalink / raw)
  To: linux-hotplug

Dear All,

I am new to writting the UDEV rules. I have one query below:

- What is the maximum length of the device name that can be set using UDEV
rules?

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)

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.

I am not very sure of UDEV specifications. Can anybody please help me out?
Or atleast tell me any document that I should refer in this regards.

Many thanks in advance.

Regards,
Jayjit

-------------------------------------------------------------------------
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=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [udev]Maximum device name length
  2007-01-15 13:31 [udev]Maximum device name length Jayjitkumar Lobhe
@ 2007-01-15 17:08 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2007-01-15 17:08 UTC (permalink / raw)
  To: linux-hotplug

On Mon, Jan 15, 2007 at 08:31:03AM -0500, Jayjitkumar Lobhe wrote:
> Dear All,
> 
> I am new to writting the UDEV rules. I have one query below:
> 
> - What is the maximum length of the device name that can be set using UDEV
> rules?
> 
> 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)
> 
> 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=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-15 17:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-15 13:31 [udev]Maximum device name length Jayjitkumar Lobhe
2007-01-15 17:08 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).