lkml.org 
[lkml]   [2004]   [Apr]   [21]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 21 Apr 2004 21:14:38 +0100 (BST)
FromJames Simmons <>
SubjectRe: Change number of tty devices
> Often, I have wondered what the need for 64 tty devices in /dev is. I began 
> tinkering with the code and am wondering why it's not user configurable. 
> I came up with a quick patch to add it as an option under 
> drivers/char/Kconfig. I also made a lower bound of 12. If this is an 
> idea worth pursuing, please let me know. If this idea has been rejected 
> before, I apologize. What do you think of this idea?

The reason for 64 is that the major number is shared between the serial 
tty and VT tty drivers. The first 64 to Vts and the rest to serial 
devices. What is even more is that athere exist ioctls that return shorts 
which means only 16 VCs can be accounted for on a VT. When the kernel 
supports multi-desktop systems we will have to deal with the serial and VT 
issue. Most likely the serial tty drivers will be given a different major 
number. I personally believe that because of the 16 bit limit that there
should be 16 VCs per VT terminal. 


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

\
 
 \ /
  Last update: 2005-03-22 13:02    [from the cache]
©2003-2008