Date: Wed, 9 Jun 2004 09:41:30 +0000 (UTC) From: Poul-Henning Kamp <phk@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys tty.h src/sys/kern kern_proc.c tty.c Message-ID: <200406090941.i599fUbQ068884@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
phk 2004-06-09 09:41:30 UTC FreeBSD src repository Modified files: sys/sys tty.h sys/kern kern_proc.c tty.c Log: Reference count struct tty. Add two new functions: ttyref() and ttyrel(). ttymalloc() creates a struct tty with a reference count of one. when ttyrel sees the count go to zero, struct tty is freed. Hold references for open ttys and for ttys which are controlling terminal for sessions. Until drivers start using ttyrel(), this commit will make no difference. Revision Changes Path 1.205 +3 -1 src/sys/kern/kern_proc.c 1.217 +93 -21 src/sys/kern/tty.c 1.79 +8 -2 src/sys/sys/tty.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406090941.i599fUbQ068884>