cvs commit: src/sys/sys tty.h src/sys/kern kern_proc.c tty.c

Poul-Henning Kamp phk at
Wed Jun 9 09:42:04 GMT 2004

phk         2004-06-09 09:41:30 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              tty.h 
    sys/kern             kern_proc.c tty.c 
  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

More information about the cvs-src mailing list