ftp://ftp.kernel.org/pub/linux/docs/device-list/ 

227 char        IBM 3270 terminal Unix tty access
                  1 = /dev/3270/tty1          First 3270 terminal
                  2 = /dev/3270/tty2          Seconds 3270 terminal
                    ...

228 char        IBM 3270 terminal block-mode access
                  0 = /dev/3270/tub           Controlling interface
                  1 = /dev/3270/tub1          First 3270 terminal
                  2 = /dev/3270/tub2          Second 3270 terminal

Perhaps my terminology was wrong, it actually says block-mode.
                    ...


>>> [EMAIL PROTECTED] 11/12/04 04:21PM >>>
Hi, Richard

As to /dev/3270/tub* being block devices, that's new to me.  Could you
point me more exactly to where you saw this?

The 3270 driver uses two major numbers, 227 and 228, for line-mode and
fullscreen operations.  Both are character devices.  The script
/usr/src/linux{,-2.4}/Documentation/s390/config3270.sh generates
/tmp/mkdev3270, which generates character device special files
/dev/3270/ttyfoo and /dev/3270/tubfoo respectively, foo a 4-character
device address.  Minor number 0 is used only with major 228 and defines
the generic fullscreen device /dev/3270/tub; 0 is not used with major 227.

To find for yourself what devices the 3270 driver knows about, give
these two commands:
    echo what=config > /proc/tty/driver/tty3270
    cat /proc/tty/driver/tty3270
Use the address at the CONSOLE line for your console device.  The line
will read:
    <device>  CONSOLE  <minor>

If you use the above scripts to configure your 3270s, you should expect
to see /dev/3270/tub<device> as major 228, minor <minor>.
If you don't want to, or don't have them available, do this:
    mkdir /dev/3270
    mknod /dev/3270/tub<device> c 228 <minor>

Hope this helps.

Richard Hitt  [EMAIL PROTECTED] 



Richard Pinion wrote:

>Are you saying my device should be tub0700 rather than tty0700?
>
>I looked at the device list on kernel.org and saw that /dev/3270/tty* is a 
>character device and /dev/3270/tub* is a block device.
>
>
>

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to