1. 14 6月, 2012 3 次提交
    • J
      PTY: add tty_port · d03702a2
      Jiri Slaby 提交于
      This has *no* function in the PTY driver yet. However as the tty
      buffers will move to the tty_port structure, we will need tty_port for
      all TTYs in the system, PTY inclusive.
      
      For PTYs this is ensured by allocating 2 tty_port's in pty_install,
      i.e. where the tty->link is allocated. Both tty_port's are properly
      assigned to each end of the tty.
      
      Freeing is done at the same place where tty is freed, i.e. in
      tty->ops->cleanup.
      
      This means BTW that tty_port does not outlive TTY in PTY. This might
      be a subject to change in the future if we see some problems.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d03702a2
    • J
      PTY: merge pty_install implementations · 5d249bc6
      Jiri Slaby 提交于
      There are currently two instances of code which handles PTY install.
      One for the legacy BSD PTY's, one for unix98's PTY's. Both of them are
      very similar and differ only in termios allocation and handling.
      
      Since we will need to allocate a tty_port at that place, this would
      require editing two places with the same pattern. Instead, let us move
      the implementation to one common place and call it from both places.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5d249bc6
    • J
      PTY: remove one empty ops->remove · 7171604a
      Jiri Slaby 提交于
      Currently, there are two as a left-over from previous patches.
      Although we really need to provide an empty handler, we do not need
      two. So remove one of them.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7171604a
  2. 13 6月, 2012 12 次提交
  3. 03 6月, 2012 1 次提交
    • L
      tty: Revert the tty locking series, it needs more work · f309532b
      Linus Torvalds 提交于
      This reverts the tty layer change to use per-tty locking, because it's
      not correct yet, and fixing it will require some more deep surgery.
      
      The main revert is d29f3ef3 ("tty_lock: Localise the lock"), but
      there are several smaller commits that built upon it, they also get
      reverted here. The list of reverted commits is:
      
        fde86d31 - tty: add lockdep annotations
        8f6576ad - tty: fix ldisc lock inversion trace
        d3ca8b64 - pty: Fix lock inversion
        b1d679af - tty: drop the pty lock during hangup
        abcefe5f - tty/amiserial: Add missing argument for tty_unlock()
        fd11b42e - cris: fix missing tty arg in wait_event_interruptible_tty call
        d29f3ef3 - tty_lock: Localise the lock
      
      The revert had a trivial conflict in the 68360serial.c staging driver
      that got removed in the meantime.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f309532b
  4. 01 6月, 2012 1 次提交
  5. 30 5月, 2012 2 次提交
  6. 21 5月, 2012 2 次提交
  7. 18 5月, 2012 6 次提交
  8. 16 5月, 2012 1 次提交
  9. 15 5月, 2012 6 次提交
  10. 12 5月, 2012 2 次提交
  11. 11 5月, 2012 3 次提交
  12. 10 5月, 2012 1 次提交