1. 30 Apr, 2008 2 commits
    • Alan Cox's avatar
      tty: The big operations rework · f34d7a5b
      Alan Cox authored
      
      - 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: default avatarAlan Cox <alan@redhat.com>
      Acked-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      Cc: Jason Wessel <jason.wessel@windriver.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f34d7a5b
    • Alan Cox's avatar
      tty: BKL pushdown · 04f378b1
      Alan Cox authored
      
      - 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: default avatarAlan Cox <alan@redhat.com>
      Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      04f378b1
  2. 15 Feb, 2008 1 commit
  3. 07 Feb, 2008 2 commits
  4. 28 Jan, 2008 1 commit
  5. 06 Jan, 2008 1 commit
  6. 29 Nov, 2007 1 commit
  7. 31 Oct, 2007 1 commit
  8. 18 Oct, 2007 1 commit
  9. 17 Oct, 2007 1 commit
  10. 10 Oct, 2007 8 commits
  11. 21 Sep, 2007 1 commit
  12. 14 Sep, 2007 1 commit
  13. 06 Aug, 2007 1 commit
  14. 30 Jul, 2007 1 commit
  15. 16 Jul, 2007 1 commit
  16. 25 May, 2007 1 commit
    • Hugh Dickins's avatar
      fix compat console unimap regression · f4d43bd5
      Hugh Dickins authored
      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: default avatarHugh Dickins <hugh@veritas.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f4d43bd5
  17. 10 May, 2007 1 commit
  18. 08 May, 2007 4 commits
  19. 02 May, 2007 3 commits
  20. 26 Apr, 2007 1 commit
  21. 27 Mar, 2007 1 commit
  22. 08 Dec, 2006 1 commit
  23. 07 Dec, 2006 1 commit
  24. 06 Dec, 2006 1 commit
  25. 11 Oct, 2006 1 commit
    • Maciej W. Rozycki's avatar
      [PATCH] 32-bit compatibility HDIO IOCTLs · 39484e53
      Maciej W. Rozycki authored
      
      A couple of HDIO IOCTLs are not yet handled and a few others are marked
      as using a pointer rather than an unsigned long.  The formers include:
      
      HDIO_GET_WCACHE, HDIO_GET_ACOUSTIC, HDIO_GET_ADDRESS and
      HDIO_GET_BUSSTATE.  The latters are: HDIO_SET_MULTCOUNT,
      HDIO_SET_UNMASKINTR, HDIO_SET_KEEPSETTINGS, HDIO_SET_32BIT,
      HDIO_SET_NOWERR, HDIO_SET_DMA, HDIO_SET_PIO_MODE and HDIO_SET_NICE.
      
      Additionally 0x330 used to be HDIO_GETGEO_BIG and may be issued by 32-bit
      `hdparm' run on a 64-bit kernel making Linux complain loudly.
      
      This is a fix for these issues.
      Signed-off-by: default avatarMaciej W. Rozycki <macro@linux-mips.org>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      39484e53
  26. 01 Oct, 2006 1 commit