Enhance ptyfs to handle multiple instances.

2014-03-14 Thread Ilya Zykov
Hello! I desire develop this project. About me. I am system administrator in little Italy-Russia's firm. I live in Moscow. OS kernel it's my hobby mainly. I have free time now and can do this project about 1-2 months. I have little experience with Linux kernel's tty layer and few accepted

Re: Enhance ptyfs to handle multiple instances.

2014-03-14 Thread Christos Zoulas
On Mar 14, 12:30pm, net...@izyk.ru (Ilya Zykov) wrote: -- Subject: Enhance ptyfs to handle multiple instances. | Hello! | I desire develop this project. Excellent. | About me. | I am system administrator in little Italy-Russia's firm. I live in Moscow. | OS kernel it's my hobby mainly. | I have

Re: Enhance ptyfs to handle multiple instances.

2014-03-14 Thread Ilya Zykov
| I have few questions about project. | Christos, can I ask you about this? | Please, if anybody has objections or already doing it, tell me know. Nobody is already doing it, and if you have questions, you came to the right place. christos Ok. 1. The main problem and question in

Re: Enhance ptyfs to handle multiple instances.

2014-03-14 Thread Justin Cormack
On Fri, Mar 14, 2014 at 1:29 PM, Ilya Zykov net...@izyk.ru wrote: | I have few questions about project. | Christos, can I ask you about this? | Please, if anybody has objections or already doing it, tell me know. Nobody is already doing it, and if you have questions, you came to the right

Re: Enhance ptyfs to handle multiple instances.

2014-03-14 Thread Joerg Sonnenberger
On Fri, Mar 14, 2014 at 09:51:12AM -0400, Christos Zoulas wrote: I don't think that putting ptmx inside devpts makes sense. OTOH, we could have multiple ptmx devices with different minor numbers and use that as the differentiating factor for the pty devices. I think that's too complex and

Re: Enhance ptyfs to handle multiple instances.

2014-03-14 Thread Christos Zoulas
In article 20140314143532.ga17...@britannica.bec.de, Joerg Sonnenberger jo...@britannica.bec.de wrote: On Fri, Mar 14, 2014 at 09:51:12AM -0400, Christos Zoulas wrote: I don't think that putting ptmx inside devpts makes sense. OTOH, we could have multiple ptmx devices with different minor

Re: Enhance ptyfs to handle multiple instances.

2014-03-14 Thread Ilya Zykov
On 14.03.2014 17:51, Christos Zoulas wrote: On Mar 14, 5:29pm, net...@izyk.ru (Ilya Zykov) wrote: -- Subject: Re: Enhance ptyfs to handle multiple instances. | Ok. | | 1. The main problem and question in this project(IMHO), it's how get access for every instance through one driver

Re: Enhance ptyfs to handle multiple instances.

2014-03-14 Thread Christos Zoulas
On Mar 14, 6:49pm, net...@izyk.ru (Ilya Zykov) wrote: -- Subject: Re: Enhance ptyfs to handle multiple instances. | We first need to decide if disclosing gaps in the pty number is a security | issue. If not, it is simple; we just allocate the next free one and we don't | care about gaps. I.e.

Re: Enhance ptyfs to handle multiple instances.

2014-03-14 Thread Ilya Zykov
On 14.03.2014 18:40, Christos Zoulas wrote: In article 20140314143532.ga17...@britannica.bec.de, Joerg Sonnenberger jo...@britannica.bec.de wrote: On Fri, Mar 14, 2014 at 09:51:12AM -0400, Christos Zoulas wrote: I don't think that putting ptmx inside devpts makes sense. OTOH, we could have

Re: Enhance ptyfs to handle multiple instances.

2014-03-14 Thread Ilya Zykov
if the first mount can only have [0..n-1] the second [n...2*n] etc... 165:0 165:1 is ptm[x] first instance devices. 165:2 165:3 is ptm[x] second instance devices ... Every instance can have [0..N] pts devices. Ilya.

Re: Enhance ptyfs to handle multiple instances.

2014-03-14 Thread Brian Buhrow
Hello. I actually do use ptmx(4) without ptyfs, but I would be willing for that to go away in NetBSD-7 or 8. -Brian On Mar 14, 2:40pm, Christos Zoulas wrote: } Subject: Re: Enhance ptyfs to handle multiple instances. } In article 20140314143532.ga17...@britannica.bec.de, } Joerg

Re: Enhance ptyfs to handle multiple instances.

2014-03-14 Thread Taylor R Campbell
Date: Fri, 14 Mar 2014 14:40:50 + (UTC) From: chris...@astron.com (Christos Zoulas) In article 20140314143532.ga17...@britannica.bec.de, Joerg Sonnenberger jo...@britannica.bec.de wrote: Actually, it would simplify things a lot if /dev/ptmx was a symlink to /dev/pts/ptmx.

Re: Enhance ptyfs to handle multiple instances.

2014-03-14 Thread Christos Zoulas
On Mar 14, 5:08pm, campbell+netbsd-tech-k...@mumble.net (Taylor R Campbell) wrote: -- Subject: Re: Enhance ptyfs to handle multiple instances. | We could install a symlink at /dev/ptmx pointing to pts/ptmx, and we | could install a device node at /dev/pts/ptmx, which gets hidden by the | ptyfs

Re: A simpler tty driver model

2014-03-14 Thread Reinoud Zandijk
Hiya Matt, On Sat, Jul 27, 2013 at 11:52:20PM -0700, Matt Thomas wrote: I have several SoC targets that I've stalled on due to the need of writing a tty driver. Sure I could cut paste from another driver but having to do that 3+ times seems inordinately stupid. So I've been thinking of