Messages in this thread | | | From | "Yin Dadian" <> | Subject | 回复: how to make more than 256 pty/tty ? | Date | Sun, 31 May 1998 07:05:14 +0800 |
| |
I looked for the file drivers/char/tty_io.c include/linux/tty.h such so. I found that there seems have no limit on function tty_open() tty_releave() .... These functions work with major and minor .So if i can make more the 256 pty/tty , i can use them. But when i use "mknod ptyA0 c 2 256" which means i want to make a device ptyA0 with major=2 and minor=256 , "mknod" changed minor "256" into "1" (256-255). if you use "mknod ptyA0 c 2 514" , you will get minor "4" (514-255*2). So i want to see its source "mknod" ,but i can't find it. Who has this file "mknod.c" or such as this ? Can you give me a copy ? Thanks a lot...
-----Original Message----- 发件人: Aaron M. Ucko <amu@MIT.EDU> 收件人: Yin Dadian <yindd@bupt.edu.cn> 抄送: linux-kernel@vger.rutgers.edu <linux-kernel@vger.rutgers.edu> 日期: 1998年5月31日 5:16 主题: Re: how to make more than 256 pty/tty ?
>There's no way around that limit short of modifying >drivers/char/tty.c; I don't know how much work that would entail, >though. At any rate, I'd strongly recommend looking into alternative >solutions involving multiple servers; even if you could get more than >256 users remotely logged in to your machine at once, I expect it >would be far too heavily loaded for anyone to get anything done. > >- >To unsubscribe from this list: send the line "unsubscribe linux-kernel" in >the body of a message to majordomo@vger.rutgers.edu >
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |