Subject: Re: README: kernel pty struct allocation change
To: Matt Thomas <matt@3am-software.com>
From: Jaromír Doleček <dolecek@ibis.cz>
List: current-users
Date: 09/11/2000 09:25:13
Matt Thomas wrote:
> An array of struct pt_softc is just wrong.  Instead, you should switch to an
> array of pt_softc * and change the pty driver to malloc/free pt_softc on
> open/close.

Sure, it's done this way now (with exception with the free bit
on close).
The initial allocated array is array of (struct pt_softc *)'s, i.e.
only pointers. The individual pt_softc's are allocated as needed.

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
@@@@  Wanna a real operating system ? Go and get NetBSD, damn!  @@@@