grehan 45208196a6 MFC tty fixes, r259549 and r259663
Keep tty_makedev as a function to preserve the KBI on 10-stable
(it is a macro in CURRENT). The changes for this are direct
commits to 10-stable.

r259549 (glebius):
  - Rename tty_makedev() into tty_makedevf() and make it capable
    to fail and return error.
  - Use make_dev_p() in tty_makedevf() instead of make_dev_cred().
  - Always pass MAKEDEV_CHECKNAME flag.
  - Optionally pass MAKEDEV_REF flag.
  - Provide macro for compatibility with old API.

  This fixes races with simultaneous creation and desctruction of
  ttys, and makes it possible to call tty_makedevf() from device
  cloners.

  A race in tty_watermarks() still exist, since the latter drops
  lock for M_WAITOK allocation. This will be addressed in separate
  commit.

r259663 (glebius):
  Move list of ttys handling from the allocating procedures, to the
  device creation stage. A device creation can fail, and in that case
  an entry already on the list will be freed.

KBI issue pointed out by:       kib
Reviewed by:    kib (KBI addition)
Approved by:    re (kib)
2014-09-18 14:44:47 +00:00
..
2013-09-07 19:16:02 +00:00
2013-09-19 18:56:00 +00:00
2014-04-12 06:50:11 +00:00
2014-01-05 23:02:03 +00:00
2014-05-15 18:07:35 +00:00
2014-08-17 07:00:47 +00:00
2014-08-09 14:05:01 +00:00
2014-04-12 14:08:53 +00:00
2014-08-20 08:24:37 +00:00
2014-09-11 11:25:10 +00:00
2014-08-21 12:30:01 +00:00
2014-09-15 13:01:47 +00:00
2014-02-18 20:27:17 +00:00
2014-04-12 14:18:25 +00:00
2014-07-24 10:43:15 +00:00
2014-06-17 13:14:31 +00:00
2014-08-29 13:12:45 +00:00
2012-08-22 20:01:57 +00:00
2014-01-29 21:57:00 +00:00
2014-08-21 10:46:19 +00:00
2012-11-14 10:33:12 +00:00
2014-02-20 21:52:39 +00:00
2014-02-18 20:27:17 +00:00
2014-03-18 00:55:19 +00:00
2014-01-08 02:19:39 +00:00
2014-08-29 08:38:34 +00:00
2014-09-10 09:47:16 +00:00
2014-08-16 12:59:47 +00:00
2014-08-29 08:42:20 +00:00
2014-02-20 08:55:59 +00:00
2014-09-06 15:26:38 +00:00
2014-09-17 14:06:21 +00:00
2013-12-17 13:38:21 +00:00
2014-08-17 07:16:03 +00:00
2014-05-08 16:12:38 +00:00
2014-04-16 17:57:08 +00:00
2012-06-25 05:41:16 +00:00
2014-06-26 08:41:54 +00:00
2013-11-03 16:04:36 +00:00
2014-02-18 20:27:17 +00:00
2014-05-15 21:41:32 +00:00
2014-08-01 15:04:46 +00:00
2014-02-18 20:27:17 +00:00
2014-05-07 20:28:27 +00:00
2014-03-28 15:38:38 +00:00
2014-01-04 23:31:34 +00:00
2014-08-19 23:08:47 +00:00
2014-07-06 22:54:17 +00:00
2014-07-06 22:47:18 +00:00
2014-08-21 10:46:19 +00:00
2013-09-19 18:56:00 +00:00
2012-10-25 09:05:21 +00:00
2014-09-18 14:44:47 +00:00
2013-11-22 19:27:17 +00:00
2014-09-10 15:45:18 +00:00
2014-08-20 17:26:05 +00:00
2013-10-29 07:33:55 +00:00
2014-08-17 07:24:23 +00:00
2014-08-18 22:53:48 +00:00
MFC
2013-02-21 21:59:35 +00:00
2014-08-17 09:07:21 +00:00
2014-08-31 21:18:23 +00:00
2014-06-22 21:21:27 +00:00
2014-08-17 09:07:21 +00:00
2014-07-30 03:56:17 +00:00
2014-07-28 01:11:29 +00:00
2013-12-13 06:12:21 +00:00