[CRIU] [PATCH 6/7] tty: Add support for multiple devpts instances

Cyrill Gorcunov gorcunov at gmail.com
Tue Jan 31 04:06:07 PST 2017


On Tue, Jan 31, 2017 at 02:34:38PM +0300, Pavel Emelyanov wrote:
> >  
> > -static DECLARE_BITMAP(tty_bitmap, (MAX_TTYS << 1));
> > -static DECLARE_BITMAP(tty_active_pairs, (MAX_TTYS << 1));
> > -
> 
> Split bitmap rework into separate patch, please.

OK, will do.

> > -static struct file_desc *pty_alloc_reg(struct tty_info *info, bool add)
> > +static struct file_desc *pty_alloc_reg(struct tty_info *info, bool add, bool invert)
> 
> Plz, describe the new argument. What is it for?

To "invert" peers, ptmx to pts and reverse. For example when we have
only slave peer opened and master is closed already we need to
"invert" slave path into ptmx.


More information about the CRIU mailing list