public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* wrong number of serial port detected
@ 2005-12-07 15:44 Jason Dravet
  2005-12-07 15:50 ` Russell King
  0 siblings, 1 reply; 25+ messages in thread
From: Jason Dravet @ 2005-12-07 15:44 UTC (permalink / raw)
  To: linux-kernel

Hello,

I have a question about the way serial ports are detected.  Since I started 
using udev last year I noticed 32 ttySxx nodes in my /dev directory.  I 
checked dmesg and the serial port driver was detecting 32 ports.  Here is 
the line from dmesg:
Serial: 8250/16550 driver $Revision: 1.90 $ 32 ports, IRQ sharing enabled
In fact I don't have 32 ports.  I have two serial ports on the motherboard, 
both of which are disabled in the BIOS.  I opened a bug in RedHat's bugzilla 
system and it was promptly closed saying this was unfixable.  I was told 
that the kernel loaded the maximum number of ports supported by the serial 
port driver.  I asked why and I have not received a response.  So I ask this 
mailing list Can the kernel detect the proper number of serial ports or not?

Thanks,
Jason



^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: wrong number of serial port detected
@ 2005-12-08  3:02 Jason Dravet
  2005-12-08 10:54 ` Russell King
  0 siblings, 1 reply; 25+ messages in thread
From: Jason Dravet @ 2005-12-08  3:02 UTC (permalink / raw)
  To: rmk+lkml; +Cc: linux-kernel

>From: Russell King <rmk+lkml@arm.linux.org.uk>
>To: Jason Dravet <dravet@hotmail.com>
>CC: linux-kernel@vger.kernel.org
>Subject: Re: wrong number of serial port detected
>Date: Wed, 7 Dec 2005 21:15:51 +0000
>
>On Wed, Dec 07, 2005 at 01:59:43PM -0600, Jason Dravet wrote:
> > >From: Russell King <rmk+lkml@arm.linux.org.uk>
> > >To: Jason Dravet <dravet@hotmail.com>
> > >CC: linux-kernel@vger.kernel.org
> > >Subject: Re: wrong number of serial port detected
> > >Date: Wed, 7 Dec 2005 15:50:34 +0000
> > >
> > >On Wed, Dec 07, 2005 at 09:44:29AM -0600, Jason Dravet wrote:
> > >> So I ask this mailing list Can the kernel detect the proper number of
> > >> serial ports or not?
> > >
> > >It does detect serial ports found in the machine.
> > >
> > >However, it _always_ offers the configured number of serial devices.
> > >This is to allow folk whose ports are not autodetected to configure
> > >them appropriately via the setserial command.  If they were not
> > >available, they could not configure them.
> > >
> > Then may I ask how XP does it?  I have to dual boot between XP and 
>Fedora.
> > When I go into XP's device manager I see all of the appropriate hardware
> > listed, no extra serial ports.  When I boot into Fedora and go into 
>/dev, I
> > see the same hardware except I have 32 serial ports and 64 tty nodes 
>(tty
> > is for virtual terminals right?).  How can 1 OS show the correct number 
>and
> > another show the wrong number?  I ask so I can better understand what is
> > going on.
>
>It seems you are comparing apples (XP's device manager) with oranges
>(/dev directory).  They're two entirely different things.
>
>The former lists devices which _are_ present in your system.
>
>The latter provides the filesystem namespace for applications to access
>devices which may or may not be present in your system.
>
I thought the purpose of udev was to create device manager like 
functionality.  I posted my question here because udev is creating 32 nodes. 
  Udev gets that information from the kernel serial port driver.  Thanks to 
your explanation I now understand.  This is why I ask questions so I can 
learn.

>As for your 64 VT tty device nodes - these "devices" are created
>dynamically when the device node is opened.  The act of opening the
>device node is defined to be the creation event.  If the device node
>did not exist, there would be no way to create _any_ virtual terminals.
>
I thought there were only 7 tty devices (Ctrl-F1 to Ctrl-F7) for local 
system login?  Ctrl-F7 being for Xwindows.  Did I miss something?

Thank you for taking the time to answer my questions.  I really appreciate 
it.
Jason



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

end of thread, other threads:[~2006-01-08  9:08 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-07 15:44 wrong number of serial port detected Jason Dravet
2005-12-07 15:50 ` Russell King
2005-12-07 19:59   ` Jason Dravet
2005-12-07 21:15     ` Russell King
2005-12-07 21:28       ` Xavier Bestel
2005-12-07 21:31         ` Russell King
2005-12-07 21:38           ` Russell King
2005-12-07 23:03             ` Dave Jones
2005-12-07 23:46               ` Russell King
2005-12-08  0:50                 ` Dave Jones
2005-12-08  3:09                   ` Dave Jones
2006-01-07 16:46                     ` Russell King
2006-01-07 21:05                       ` Dave Jones
2006-01-08  1:23                         ` Jason Dravet
2006-01-08  9:08                           ` Russell King
  -- strict thread matches above, loose matches on Subject: below --
2005-12-08  3:02 Jason Dravet
2005-12-08 10:54 ` Russell King
2005-12-09 14:37   ` Jason Dravet
2005-12-09 17:27     ` Russell King
2005-12-09 19:54     ` Bjorn Helgaas
2005-12-10  1:46       ` Jason Dravet
2005-12-10 10:35       ` Russell King
2005-12-10 14:24         ` Jason Dravet
2005-12-10 15:46           ` Russell King
2005-12-10 17:56             ` Jason Dravet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox