git: kernel - Refactor tty clist code

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Oct 4 19:48:34 PDT 2018


commit 4725869b060b0e647b6c64480a0ce50f64ff23bb
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Oct 4 14:37:12 2018 -0700

    kernel - Refactor tty clist code
    
    * Remove all the old cruft, completely rewrite the clist code to use
      a single linear buffer and a FIFO mechanism.
    
    * The linear buffer just uses 16-bit elements in order to record
      TTY_QUOTE along with the character.
    
    * Fixes bug in last commit (lack of global locks around global clist
      caches) by removing the cache entirely.

Summary of changes:
 sys/bus/u4b/serial/usb_serial.c            |   5 +-
 sys/dev/misc/syscons/syscons.c             |   2 +-
 sys/dev/serial/sio/sio.c                   |  10 +-
 sys/kern/tty.c                             |  55 +-
 sys/kern/tty_pty.c                         |   8 +-
 sys/kern/tty_subr.c                        | 805 +++++++----------------------
 sys/net/sl/if_sl.c                         |  35 +-
 sys/netgraph/tty/ng_tty.c                  |  11 +-
 sys/netgraph7/bluetooth/drivers/h4/ng_h4.c |  11 +-
 sys/netgraph7/tty/ng_tty.c                 |  11 +-
 sys/platform/vkernel64/platform/console.c  |   2 +-
 sys/sys/clist.h                            |  66 ---
 sys/sys/tty.h                              |  41 +-
 13 files changed, 275 insertions(+), 787 deletions(-)
 delete mode 100644 sys/sys/clist.h

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4725869b060b0e647b6c64480a0ce50f64ff23bb


-- 
DragonFly BSD source repository


More information about the Commits mailing list