1. 25 Jul, 2008 1 commit
  2. 24 Jul, 2008 1 commit
  3. 16 Jul, 2008 1 commit
    • Randy Dunlap's avatar
      Fix compile issues in fs/compat_ioctl.c when CONFIG_BLOCK is disabled · 3c3622dc
      Randy Dunlap authored
      Fix fs/compat_ioctl.c to handle CONFIG_BLOCK=n, CONFIG_SCSI=n to avoid
      build errors:
      In file included from include/scsi/scsi.h:12,
                       from fs/compat_ioctl.c:71:
      include/scsi/scsi_cmnd.h:27:25: warning: "BLK_MAX_CDB" is not defined
      include/scsi/scsi_cmnd.h:28:3: error: #error MAX_COMMAND_SIZE can not be bigger than BLK_MAX_CDB
      In file included from include/scsi/scsi.h:12,
                       from fs/compat_ioctl.c:71:
      include/scsi/scsi_cmnd.h: In function 'scsi_bidi_cmnd':
      include/scsi/scsi_cmnd.h:182: error: implicit declaration of function 'blk_bidi_rq'
      include/scsi/scsi_cmnd.h:183: error: dereferencing pointer to incomplete type
      include/scsi/scsi_cmnd.h: In function 'scsi_in':
      include/scsi/scsi_cmnd.h:189: error: dereferencing pointer to incomplete type
      Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
  4. 14 Jul, 2008 1 commit
    • Marcel Holtmann's avatar
      [Bluetooth] Export details about authentication requirements · 40be492f
      Marcel Holtmann authored
      With the Simple Pairing support, the authentication requirements are
      an explicit setting during the bonding process. Track and enforce the
      requirements and allow higher layers like L2CAP and RFCOMM to increase
      them if needed.
      This patch introduces a new IOCTL that allows to query the current
      authentication requirements. It is also possible to detect Simple
      Pairing support in the kernel this way.
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
  5. 17 Jun, 2008 2 commits
  6. 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
      - 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>
    • 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>
  7. 15 Feb, 2008 1 commit
  8. 08 Feb, 2008 1 commit
  9. 07 Feb, 2008 1 commit
    • Erez Zadok's avatar
      VFS: swap do_ioctl and vfs_ioctl names · deb21db7
      Erez Zadok authored
      Rename old vfs_ioctl to do_ioctl, because the comment above it clearly
      indicates that it is an internal function not to be exported to modules;
      therefore it should have a more traditional do_XXX name.  The new do_ioctl
      is exported in fs.h but not to modules.
      Rename the old do_ioctl to vfs_ioctl because the names vfs_XXX should
      preferably be reserved to callable VFS functions which modules may call, as
      many other vfs_XXX functions already do.  Export the new vfs_ioctl to GPL
      modules so others can use it (including Unionfs and eCryptfs).  Add DocBook
      for new vfs_ioctl.
      [akpm@linux-foundation.org: fix build]
      Signed-off-by: default avatarErez Zadok <ezk@cs.sunysb.edu>
      Cc: Christoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
  10. 28 Jan, 2008 1 commit
  11. 06 Jan, 2008 1 commit
  12. 29 Nov, 2007 1 commit
  13. 31 Oct, 2007 1 commit
  14. 18 Oct, 2007 1 commit
  15. 17 Oct, 2007 1 commit
  16. 10 Oct, 2007 8 commits
  17. 21 Sep, 2007 1 commit
  18. 14 Sep, 2007 1 commit
  19. 06 Aug, 2007 1 commit
  20. 30 Jul, 2007 1 commit
  21. 16 Jul, 2007 1 commit
  22. 26 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>
  23. 10 May, 2007 1 commit
  24. 08 May, 2007 4 commits
  25. 02 May, 2007 3 commits
  26. 26 Apr, 2007 1 commit