作者 主題: 問個有關硬體數量的問題..  (閱讀 5560 次)

0 會員 與 1 訪客 正在閱讀本文。

Yeh Dan kie

  • 懷疑的國中生
  • **
  • 文章數: 40
    • 檢視個人資料
問個有關硬體數量的問題..
« 於: 2005-03-08 15:32 »
上次上到PPP時,我想到之前我朋友曾經問過我的一個問題...
(因為他們公司需要用到100個serial port)
在linux上serial port有沒有限制數量,也就是device file
/dev/ttyS0....ttySn...在數量上有限制嗎??
查過資料..但是都沒提到數量的問題...><
其他學長大人知道的..也請幫忙...謝謝...

netman

  • 管理員
  • 俺是博士!
  • *****
  • 文章數: 17484
    • 檢視個人資料
    • http://www.study-area.org
問個有關硬體數量的問題..
« 回覆 #1 於: 2005-03-08 16:06 »
看 /usr/src/linux-2.4/Documentation/devices.txt 的說明:
引用
 4 char        TTY devices
                  0 = /dev/tty0         Current virtual console

                  1 = /dev/tty1         First virtual console
                    ...
                 63 = /dev/tty63        63rd virtual console
                 64 = /dev/ttyS0        First UART serial port
                    ...
                255 = /dev/ttyS191      192nd UART serial port

                UART serial ports refer to 8250/16450/16550 series devices.

                Older versions of the Linux kernel used this major
                number for BSD PTY devices.  As of Linux 2.1.115, this
                is no longer supported.  Use major numbers 2 and 3.

Yeh Dan kie

  • 懷疑的國中生
  • **
  • 文章數: 40
    • 檢視個人資料
問個有關硬體數量的問題..
« 回覆 #2 於: 2005-03-08 18:21 »
原來記載在這個地方.. :o
謝謝老師...