In article <5332dc47.1060...@izyk.ru>, Ilya Zykov <net...@izyk.ru> wrote: >> | >> | - error = (*ptm->makename)(ptm, l, name, sizeof(name), dev, ms); >> | + error = pty_makename(ptm, l, name, sizeof(name), dev, ms); >> | if (error) >> | return error; >> | >> >> Are you sure about this one? It is used when ptyfs is mounted and you have >> old pty nodes around (so you get consistent names). >> >> christos >> > >I think pty_allocvp can be invoked only when ptm == &ptm_bsdpty, >therefore: >ptm->allocvp == pty_allocvp, >ptm->makename == pty_makename. >ptm->getvattr == pty_getvattr. > >In what condition and who can invokes pty_allocvp, when ptm == &ptm_ptyfspty?
Yes, that is true, ignore me. christos