1. 30 4月, 2008 2 次提交
    • A
      tty: The big operations rework · f34d7a5b
      Alan Cox 提交于
      - Operations are now a shared const function block as with most other Linux
        objects
      
      - Introduce wrappers for some optional functions to get consistent behaviour
      
      - Wrap put_char which used to be patched by the tty layer
      
      - Document which functions are needed/optional
      
      - Make put_char report success/fail
      
      - Cache the driver->ops pointer in the tty as tty->ops
      
      - Remove various surplus lock calls we no longer need
      
      - Remove proc_write method as noted by Alexey Dobriyan
      
      - Introduce some missing sanity checks where certain driver/ldisc
        combinations would oops as they didn't check needed methods were present
      
      [akpm@linux-foundation.org: fix fs/compat_ioctl.c build]
      [akpm@linux-foundation.org: fix isicom]
      [akpm@linux-foundation.org: fix arch/ia64/hp/sim/simserial.c build]
      [akpm@linux-foundation.org: fix kgdb]
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Cc: Jason Wessel <jason.wessel@windriver.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f34d7a5b
    • A
      tty: BKL pushdown · 04f378b1
      Alan Cox 提交于
      - Push the BKL down into the line disciplines
      - Switch the tty layer to unlocked_ioctl
      - Introduce a new ctrl_lock spin lock for the control bits
      - Eliminate much of the lock_kernel use in n_tty
      - Prepare to (but don't yet) call the drivers with the lock dropped
        on the paths that historically held the lock
      
      BKL now primarily protects open/close/ldisc change in the tty layer
      
      [jirislaby@gmail.com: a couple of fixes]
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      04f378b1
  2. 15 2月, 2008 1 次提交
  3. 08 2月, 2008 2 次提交
  4. 29 1月, 2008 1 次提交
  5. 07 1月, 2008 1 次提交
  6. 30 11月, 2007 1 次提交
  7. 31 10月, 2007 1 次提交
  8. 19 10月, 2007 1 次提交
  9. 17 10月, 2007 1 次提交
  10. 11 10月, 2007 1 次提交
  11. 10 10月, 2007 7 次提交
  12. 21 9月, 2007 1 次提交
  13. 15 9月, 2007 1 次提交
  14. 07 8月, 2007 1 次提交
  15. 30 7月, 2007 1 次提交
  16. 17 7月, 2007 1 次提交
  17. 26 5月, 2007 1 次提交
    • H
      fix compat console unimap regression · f4d43bd5
      Hugh Dickins 提交于
      Why is it that since the 2f1a2ccb console
      UTF-8 fixes went into 2.6.22-rc1, the PowerMac G5 shows only inverse video
      question marks for the text on tty2-6? whereas tty1 is fine, and so is x86.
      
      No fault of that patch: by removing the old fallback behaviour, it reveals
      that 32-bit setfont running on 64-bit kernels has only really worked on
      the current console, the rest getting faked by that inadequate fallback.
      
      Bring the compat do_unimap_ioctl into line with the main one: PIO_UNIMAP
      and GIO_UNIMAP apply to the specified tty, not redirected to fg_console.
      Use the same checks, and most particularly, remember to check access_ok:
      con_set_unimap and con_get_unimap are using __get_user and __put_user.
      
      And the compat vt_check should ask for the same capability as the main
      one, CAP_SYS_TTY_CONFIG rather than CAP_SYS_ADMIN.  Added in vt_ioctl's
      vc_cons_allocated check for safety, though failure may well be impossible.
      Signed-off-by: NHugh Dickins <hugh@veritas.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f4d43bd5
  18. 11 5月, 2007 1 次提交
  19. 09 5月, 2007 4 次提交
  20. 03 5月, 2007 3 次提交
  21. 26 4月, 2007 1 次提交
  22. 28 3月, 2007 1 次提交
  23. 09 12月, 2006 1 次提交
  24. 08 12月, 2006 1 次提交
  25. 07 12月, 2006 1 次提交
  26. 12 10月, 2006 1 次提交
  27. 01 10月, 2006 1 次提交