The NetBSD Project

CVS log for src/sys/sys/tty.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / sys

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.103 / (download) - annotate - [select for diffs], Wed Oct 26 23:41:49 2022 UTC (3 months, 1 week ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.102: +5 -1 lines
Diff to previous 1.102 (colored)

tty(9): New ttylock, ttyunlock, ttylocked functions.

These are wrappers around the global tty_lock for now (and the
continued existence of the tty_lock variable is why the ttylock
function has no underscore in its name).  They will assist in
converting drivers to per-tty locking later on.

Revision 1.102 / (download) - annotate - [select for diffs], Tue Oct 25 23:21:13 2022 UTC (3 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.101: +6 -1 lines
Diff to previous 1.101 (colored)

constty(4): Make MP-safe, take three.

Access to the global constty variable is coordinated as follows:

1. Setting constty to nonnull, with atomic_store_release, is allowed
   only under the new adaptive constty_lock in thread context.  This
   serializes TIOCCONS operations and ensures unlocked readers can
   safely use a constty pointer read with atomic_load_consume.

2. Changing constty from nonnull to null, with atomic_cas_ptr, is
   allowed in any context -- printf(9) uses this to disable a broken
   constty.

3. Reading constty under constty_lock is allowed with
   atomic_load_relaxed, because while constty_lock is held, it can
   only be made null by some other thread/CPU, never made nonnull.

4. Reading constty outside constty_lock is allowed with
   atomic_load_consume in a pserialize read section -- constty is
   only ever made nonnull with atomic_store_release, in (1).
   ttyclose will wait for all these pserialize read sections to
   complete before flushing the tty.

5. To continue to use a struct tty pointer in (4) after the
   pserialize read section has completed, caller must use tty_acquire
   during the pserialize read section and then tty_release when done.
   ttyclose will wait for all these references to drain before
   returning.

These access rules allow us to serialize TIOCCONS, and safely destroy
ttys, without putting any locks on the access paths like printf(9)
that use constty.  Once we set D_MPSAFE, operations on /dev/console
will contend only with other users of the same tty as constty, which
will be an improvement over contending with all other kernel lock
users in the system.

Changes second time around:
- Fix initialization of ok in cons.c cn_redirect.
- Fix reversed sense of conditional in subr_prf.c putone.

Changes third time around:
- Initialize ttyref_cv so we don't panic when trying to use it,
  leading to infinite loop when panic tries to take tty_lock to print
  the panic message while we already hold tty_lock.

Revision 1.101 / (download) - annotate - [select for diffs], Fri Oct 7 18:59:37 2022 UTC (4 months ago) by riastradh
Branch: MAIN
Changes since 1.100: +1 -6 lines
Diff to previous 1.100 (colored)

Revert "constty(4): Make MP-safe."

Something is still busted and this is interfering with the releng
amd64 testbed.

Revision 1.100 / (download) - annotate - [select for diffs], Thu Oct 6 19:58:41 2022 UTC (4 months ago) by riastradh
Branch: MAIN
Changes since 1.99: +6 -1 lines
Diff to previous 1.99 (colored)

constty(4): Make MP-safe.

Access to the global constty variable is coordinated as follows:

1. Setting constty to nonnull, with atomic_store_release, is allowed
   only under the new adaptive constty_lock in thread context.  This
   serializes TIOCCONS operations and ensures unlocked readers can
   safely use a constty pointer read with atomic_load_consume.

2. Changing constty from nonnull to null, with atomic_cas_ptr, is
   allowed in any context -- printf(9) uses this to disable a broken
   constty.

3. Reading constty under constty_lock is allowed with
   atomic_load_relaxed, because while constty_lock is held, it can
   only be made null by some other thread/CPU, never made nonnull.

4. Reading constty outside constty_lock is allowed with
   atomic_load_consume in a pserialize read section -- constty is
   only ever made nonnull with atomic_store_release, in (1).
   ttyclose will wait for all these pserialize read sections to
   complete before flushing the tty.

5. To continue to use a struct tty pointer in (4) after the
   pserialize read section has completed, caller must use tty_acquire
   during the pserialize read section and then tty_release when done.
   ttyclose will wait for all these references to drain before
   returning.

These access rules allow us to serialize TIOCCONS, and safely destroy
ttys, without putting any locks on the access paths like printf(9)
that use constty.  Once we set D_MPSAFE, operations on /dev/console
will contend only with other users of the same tty as constty, which
will be an improvement over contending with all other kernel lock
users in the system.

Changes second time around:
- Fix initialization of ok in cons.c cn_redirect.
- Fix reversed sense of conditional in subr_prf.c putone.

Revision 1.99 / (download) - annotate - [select for diffs], Tue Oct 4 05:20:02 2022 UTC (4 months ago) by riastradh
Branch: MAIN
Changes since 1.98: +1 -6 lines
Diff to previous 1.98 (colored)

Revert "constty(4): Make MP-safe."

Something appears to be wrong with this.

Revision 1.98 / (download) - annotate - [select for diffs], Mon Oct 3 19:57:06 2022 UTC (4 months ago) by riastradh
Branch: MAIN
Changes since 1.97: +6 -1 lines
Diff to previous 1.97 (colored)

constty(4): Make MP-safe.

Access to the global constty variable is coordinated as follows:

1. Setting constty to nonnull, with atomic_store_release, is allowed
   only under the new adaptive constty_lock in thread context.  This
   serializes TIOCCONS operations and ensures unlocked readers can
   safely use a constty pointer read with atomic_load_consume.

2. Changing constty from nonnull to null, with atomic_cas_ptr, is
   allowed in any context -- printf(9) uses this to disable a broken
   constty.

3. Reading constty under constty_lock is allowed with
   atomic_load_relaxed, because while constty_lock is held, it can
   only be made null by some other thread/CPU, never made nonnull.

4. Reading constty outside constty_lock is allowed with
   atomic_load_consume in a pserialize read section -- constty is
   only ever made nonnull with atomic_store_release, in (1).
   ttyclose will wait for all these pserialize read sections to
   complete before flushing the tty.

5. To continue to use a struct tty pointer in (4) after the
   pserialize read section has completed, caller must use tty_acquire
   during the pserialize read section and then tty_release when done.
   ttyclose will wait for all these references to drain before
   returning.

These access rules allow us to serialize TIOCCONS, and safely destroy
ttys, without putting any locks on the access paths like printf(9)
that use constty.  Once we set D_MPSAFE, operations on /dev/console
will contend only with other users of the same tty as constty, which
will be an improvement over contending with all other kernel lock
users in the system.

Revision 1.97 / (download) - annotate - [select for diffs], Thu Apr 7 21:46:51 2022 UTC (10 months ago) by riastradh
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.96: +2 -1 lines
Diff to previous 1.96 (colored)

tty(9): New function tty_unit for struct cdevsw::d_devtounit.

Revision 1.96 / (download) - annotate - [select for diffs], Mon Mar 28 12:39:28 2022 UTC (10 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.95: +4 -1 lines
Diff to previous 1.95 (colored)

tty(9): New ttycancel function.

This causes any current and future ttyopens to fail until ttyclose.

This is necessary for revoke to work reliably for device detach like
ucom(4) removable USB devices.  A tty driver for a removable device
needs some way to interrupt a pending .d_open so it returns promptly.
But ttyclose only interrupts ttyopen if it's already sleeping; it
won't cause a concurrent .d_open call which _will call_ but _hasn't
yet called_ ttyopen to avoid sleeping.  Using ttycancel in the tty
driver's .d_cancel makes this work.

Revision 1.94.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:57 2019 UTC (3 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.94: +5 -2 lines
Diff to previous 1.94 (colored) next main 1.95 (colored)

Sync with HEAD

Revision 1.95 / (download) - annotate - [select for diffs], Sun Jan 27 02:08:50 2019 UTC (4 years ago) by pgoyette
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.94: +5 -2 lines
Diff to previous 1.94 (colored)

Merge the [pgoyette-compat] branch

Revision 1.94.2.4 / (download) - annotate - [select for diffs], Tue Jan 22 07:42:42 2019 UTC (4 years ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.94.2.3: +1 -3 lines
Diff to previous 1.94.2.3 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored)

Convert the MODULE_{,VOID_}HOOK_CALL macros to do everything in-line
rather than defining an intermediate hook##call function.  Almost
all of the hooks are called only once, and although we lose the
ability of doing things like

	if (MODULE_HOOK_CALL(...) == 0) ...

we simplify things quite a bit.  With this change, we no longer need
to have both declaration and definition macros, and the definition
no longer needs to have both prototype argument list and a "real"
argument list.

FWIW, the above if now needs to written as

	int ret;

	MODULE_HOOK_CALL(..., ret);
	if (ret == 0) ...

with appropriate use of braces {}.

Revision 1.94.2.3 / (download) - annotate - [select for diffs], Mon Oct 15 09:51:34 2018 UTC (4 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.94.2.2: +1 -5 lines
Diff to previous 1.94.2.2 (colored) to branchpoint 1.94 (colored)

Convert another hook to the MP-sfe mechanism.

XXX still have three more to convert: openat_10, sysvipc50_sysctl and
XXX compat70_unp_addsockcred

Revision 1.94.2.2 / (download) - annotate - [select for diffs], Tue Sep 4 02:21:58 2018 UTC (4 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.94.2.1: +10 -2 lines
Diff to previous 1.94.2.1 (colored) to branchpoint 1.94 (colored)

Separate COMPAT_BSDPTY stuff from tty COMPAT_60 stuff.  Enables
building of COMPAT_60 module whether or not COMPAT_BSDPTY is
defined in the kernel.

Revision 1.94.2.1 / (download) - annotate - [select for diffs], Sun Mar 18 12:07:00 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.94: +3 -2 lines
Diff to previous 1.94 (colored)

Initial pass at getting the tty stuff properly modularized.  Subject
to review and revision.

Revision 1.90.12.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:21 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.90.12.2: +10 -0 lines
Diff to previous 1.90.12.2 (colored) to branchpoint 1.90 (colored) next main 1.91 (colored)

update from HEAD

Revision 1.93.12.1 / (download) - annotate - [select for diffs], Mon Nov 6 10:29:06 2017 UTC (5 years, 3 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.93: +5 -1 lines
Diff to previous 1.93 (colored) next main 1.94 (colored)

Pull up following revision(s) (requested by martin in ticket #338):
	sys/arch/sparc64/dev/sab.c: revision 1.55
	sys/dev/ic/com.c: revision 1.345
	sys/dev/ic/z8530tty.c: revision 1.132
	sys/dev/sun/sunkbd.c: revision 1.30
	sys/dev/sun/sunms.c: revision 1.33
	sys/sys/tty.h: revision 1.94
As discussed on tech-kern: define a new tty internal state flag: TS_KERN_ONLY
Implement it in a few tty drivers. If this flag is set, the underlying
hardware is used by another driver and userland has no right to open
it. A few uses will appear soon in sys/dev/sun/sun{kbd,ms}.c.
--
PR port-sparc64/52622: mark the parent device as TS_KERN_ONLY,
so userland will not touch it (and change serial params w/o our
control).

Revision 1.94 / (download) - annotate - [select for diffs], Tue Oct 31 10:45:19 2017 UTC (5 years, 3 months ago) by martin
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.93: +5 -1 lines
Diff to previous 1.93 (colored)

As discussed on tech-kern: define a new tty internal state flag: TS_KERN_ONLY

Implement it in a few tty drivers. If this flag is set, the underlying
hardware is used by another driver and userland has no right to open
it. A few uses will appear soon in sys/dev/sun/sun{kbd,ms}.c.

Revision 1.93 / (download) - annotate - [select for diffs], Sat Nov 15 19:17:05 2014 UTC (8 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, netbsd-8-base, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.92: +7 -1 lines
Diff to previous 1.92 (colored)

centralize the tty dialout and callunit macros

Revision 1.90.12.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:44 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.90.12.1: +6 -0 lines
Diff to previous 1.90.12.1 (colored) to branchpoint 1.90 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.91.10.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:55 2014 UTC (8 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.91: +7 -1 lines
Diff to previous 1.91 (colored) next main 1.92 (colored)

Rebase.

Revision 1.92 / (download) - annotate - [select for diffs], Thu May 22 16:31:19 2014 UTC (8 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.91: +7 -1 lines
Diff to previous 1.91 (colored)

Use accessor functions for the tty's table of control characters.
(at least from outside the core tty sources)

Move some xon/xoff code from net/ppp_tty.c to kern/tty.c.

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Thu May 22 11:41:18 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.90: +2 -1 lines
Diff to previous 1.90 (colored) next main 1.91 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.90.12.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:29 2013 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.90: +2 -1 lines
Diff to previous 1.90 (colored)

resync from head

Revision 1.91 / (download) - annotate - [select for diffs], Sun Feb 24 06:20:24 2013 UTC (9 years, 11 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-earlyentropy
Changes since 1.90: +2 -1 lines
Diff to previous 1.90 (colored)

Add a t_softc member to struct tty in which a driver can store a pointer
to its softc.  (analogous to if_softc in struct ifnet).

Revision 1.90 / (download) - annotate - [select for diffs], Sat Sep 24 00:05:38 2011 UTC (11 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.89: +9 -8 lines
Diff to previous 1.89 (colored)

- Introduce a sysctl to control the default tty queue size kern.tty.qsize,
  which defaults to 1024 as before.
- Add two ioctls TIOC{G,S}QSIZE to read and adjust the queue size on
  individual ptys.

NB: ttys (and ptys) still silently (or beepingly (IMAXBEL)) drop
    characters if the queue size is exceeded. I.e. you can appear
    to succeed writing to the {p,t}ty, but not all characters will
    have made it if the queue overflows.  CVS:

Revision 1.89 / (download) - annotate - [select for diffs], Fri Sep 23 15:29:09 2011 UTC (11 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.88: +4 -3 lines
Diff to previous 1.88 (colored)

Change obsolete CBSIZE constant (48), to a power of two constant (64) that
is close enough to match the original assumptions.

Revision 1.88 / (download) - annotate - [select for diffs], Tue Jul 26 13:14:17 2011 UTC (11 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.87: +2 -1 lines
Diff to previous 1.87 (colored)

stop using lbolt in tty

Revision 1.86.8.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:10:13 2011 UTC (11 years, 8 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (colored) next main 1.87 (colored)

Sync with HEAD.

Revision 1.86.6.1 / (download) - annotate - [select for diffs], Tue May 31 03:05:12 2011 UTC (11 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (colored) next main 1.87 (colored)

sync with head

Revision 1.87 / (download) - annotate - [select for diffs], Sun Apr 24 16:26:52 2011 UTC (11 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (colored)

Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
consistency.  Remove some unnecessary malloc.h inclusions as well.

Revision 1.80.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:14:36 2009 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.80.2.1: +10 -21 lines
Diff to previous 1.80.2.1 (colored) to branchpoint 1.80 (colored) next main 1.81 (colored)

sync with head.

Revision 1.82.6.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:34:32 2009 UTC (13 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.82.6.1: +2 -4 lines
Diff to previous 1.82.6.1 (colored) to branchpoint 1.82 (colored) next main 1.83 (colored)

Sync with HEAD.

Revision 1.82.8.1 / (download) - annotate - [select for diffs], Fri Feb 6 02:05:18 2009 UTC (14 years ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.82: +2 -1 lines
Diff to previous 1.82 (colored) next main 1.83 (colored)

Pull up following revision(s) (requested by drochner in ticket #417):
	sys/dev/wscons/wsdisplay.c: revision 1.126
	sys/kern/tty.c: revision 1.230
	sys/sys/tty.h: revision 1.86
Avoid deadlock in tty code if a terminal emulation responds to
type/status/etc inquiries. (PR kern/37915)
This is clearly a design problem in tty, but we need a cheap fix now.
The problem is that ttyinput() tries to pull a spinlock which
is already held on calls to t_oproc.
The workaround is based on the fact that within wscons code, the
wsdisplay_emulinput() function is only called directly from
wsdisplaystart(). So we can be sure that the tty lock is held,
and use an inofficial entry point in ttc.c which avoids the locking.
These ate certainly more assumptions than needed by the fix
proposed in the PR, but it doesn't affect (and slow down) other
tty drivers.

Revision 1.86 / (download) - annotate - [select for diffs], Thu Jan 22 20:40:20 2009 UTC (14 years ago) by drochner
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, jruoho-x86intr
Changes since 1.85: +2 -1 lines
Diff to previous 1.85 (colored)

Avoid deadlock in tty code if a terminal emulation responds to
type/status/etc inquiries. (PR kern/37915)
This is clearly a design problem in tty, but we need a cheap fix now.
The problem is that ttyinput() tries to pull a spinlock which
is already held on calls to t_oproc.
The workaround is based on the fact that within wscons code, the
wsdisplay_emulinput() function is only called directly from
wsdisplaystart(). So we can be sure that the tty lock is held,
and use an inofficial entry point in ttc.c which avoids the locking.
These ate certainly more assumptions than needed by the fix
proposed in the PR, but it doesn't affect (and slow down) other
tty drivers.

Revision 1.85 / (download) - annotate - [select for diffs], Thu Jan 22 14:38:34 2009 UTC (14 years ago) by yamt
Branch: MAIN
Changes since 1.84: +1 -4 lines
Diff to previous 1.84 (colored)

malloc -> kmem_alloc

Revision 1.82.6.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:31 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.82: +2 -14 lines
Diff to previous 1.82 (colored)

Sync with HEAD.

Revision 1.79.6.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:41 2009 UTC (14 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.79.6.1: +1 -13 lines
Diff to previous 1.79.6.1 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored)

Sync with HEAD.

Revision 1.82.4.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:36 2008 UTC (14 years, 1 month ago) by haad
Branch: haad-dm
Changes since 1.82: +2 -14 lines
Diff to previous 1.82 (colored) next main 1.83 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.84 / (download) - annotate - [select for diffs], Wed Nov 19 18:36:10 2008 UTC (14 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.83: +2 -14 lines
Diff to previous 1.83 (colored)

Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime

Revision 1.83 / (download) - annotate - [select for diffs], Wed Nov 12 12:36:29 2008 UTC (14 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.82: +2 -2 lines
Diff to previous 1.82 (colored)

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.

Revision 1.81.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:32:03 2008 UTC (14 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.81: +8 -5 lines
Diff to previous 1.81 (colored) next main 1.82 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.79.8.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:49 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.79.8.1: +8 -5 lines
Diff to previous 1.79.8.1 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored)

sync with head

Revision 1.79.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:34 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.79: +37 -6 lines
Diff to previous 1.79 (colored)

Sync with HEAD.

Revision 1.82 / (download) - annotate - [select for diffs], Sun May 25 19:22:21 2008 UTC (14 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-0-RC1, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5, haad-dm
Changes since 1.81: +8 -5 lines
Diff to previous 1.81 (colored)

Properly fix the "hanging in tty" bug that was worked around with cv_wakeup()
some time again.

Revision 1.79.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:50 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.79: +30 -2 lines
Diff to previous 1.79 (colored)

sync with head.

Revision 1.80.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:52 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.80: +1 -8 lines
Diff to previous 1.80 (colored)

sync with head.

Revision 1.81 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:11 2008 UTC (14 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.80: +1 -8 lines
Diff to previous 1.80 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.80 / (download) - annotate - [select for diffs], Sun Apr 20 19:22:44 2008 UTC (14 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.79: +37 -2 lines
Diff to previous 1.79 (colored)

Improve ^T / SIGINFO handling:

- Restore code removed during LWPification.
- Don't touch proc state from a hardware interrupt handler.
- Fix the locking.

Revision 1.73.22.4 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:24 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.73.22.3: +2 -2 lines
Diff to previous 1.73.22.3 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored)

Sync with HEAD.

Revision 1.67.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:48:01 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.67.2.5: +3 -2 lines
Diff to previous 1.67.2.5 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored)

sync with head

Revision 1.73.16.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:58:21 2008 UTC (15 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.73.16.1: +17 -16 lines
Diff to previous 1.73.16.1 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored)

sync with HEAD

Revision 1.76.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:58:11 2008 UTC (15 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.76: +3 -2 lines
Diff to previous 1.76 (colored) next main 1.77 (colored)

Sync with HEAD

Revision 1.79 / (download) - annotate - [select for diffs], Mon Dec 31 23:33:08 2007 UTC (15 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-pf42, mjf-devfs2
Changes since 1.78: +4 -1 lines
Diff to previous 1.78 (colored)

Put back ttclos, a lot of the drivers use it.

Revision 1.78 / (download) - annotate - [select for diffs], Mon Dec 31 20:48:44 2007 UTC (15 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.77: +1 -4 lines
Diff to previous 1.77 (colored)

no more sleep constants.

Revision 1.73.22.3 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:45 2007 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.73.22.2: +2 -1 lines
Diff to previous 1.73.22.2 (colored) to branchpoint 1.73 (colored)

Sync with HEAD.

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:58:00 2007 UTC (15 years, 1 month ago) by ad
Branch: vmlocking2
Changes since 1.76: +2 -1 lines
Diff to previous 1.76 (colored) next main 1.77 (colored)

Sync with head.

Revision 1.77 / (download) - annotate - [select for diffs], Sat Dec 22 02:21:30 2007 UTC (15 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.76: +2 -1 lines
Diff to previous 1.76 (colored)

Restore seperate condvars for clist i/o and clist control activity.
Fixes lockups with concurrent output to ttys. kern/37455

Revision 1.73.22.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:21:36 2007 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.73.22.1: +6 -7 lines
Diff to previous 1.73.22.1 (colored) to branchpoint 1.73 (colored)

Sync with HEAD.

Revision 1.67.2.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:34:59 2007 UTC (15 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.67.2.4: +6 -7 lines
Diff to previous 1.67.2.4 (colored) to branchpoint 1.67 (colored)

sync with head

Revision 1.73.14.3 / (download) - annotate - [select for diffs], Wed Nov 21 21:56:18 2007 UTC (15 years, 2 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.73.14.2: +6 -7 lines
Diff to previous 1.73.14.2 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored)

Sync with HEAD.

Revision 1.73.20.3 / (download) - annotate - [select for diffs], Wed Nov 21 21:19:51 2007 UTC (15 years, 2 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.73.20.2: +6 -7 lines
Diff to previous 1.73.20.2 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored)

Sync with HEAD

Revision 1.76 / (download) - annotate - [select for diffs], Mon Nov 19 18:51:52 2007 UTC (15 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.75: +6 -7 lines
Diff to previous 1.75 (colored)

- Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.

Revision 1.73.22.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:49:34 2007 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.73: +23 -15 lines
Diff to previous 1.73 (colored)

Sync with HEAD.

Revision 1.73.20.2 / (download) - annotate - [select for diffs], Sun Nov 18 19:35:57 2007 UTC (15 years, 2 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.73.20.1: +10 -9 lines
Diff to previous 1.73.20.1 (colored) to branchpoint 1.73 (colored)

Sync with HEAD

Revision 1.67.2.4 / (download) - annotate - [select for diffs], Thu Nov 15 11:45:35 2007 UTC (15 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.67.2.3: +23 -15 lines
Diff to previous 1.67.2.3 (colored) to branchpoint 1.67 (colored)

sync with head.

Revision 1.73.14.2 / (download) - annotate - [select for diffs], Wed Nov 14 19:04:56 2007 UTC (15 years, 2 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.73.14.1: +11 -10 lines
Diff to previous 1.73.14.1 (colored) to branchpoint 1.73 (colored)

Sync with HEAD.

Revision 1.75 / (download) - annotate - [select for diffs], Wed Nov 14 01:15:30 2007 UTC (15 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.74: +11 -10 lines
Diff to previous 1.74 (colored)

Fix some problems with the tty signalling code.

Revision 1.73.20.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:03:27 2007 UTC (15 years, 2 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.73: +22 -15 lines
Diff to previous 1.73 (colored)

Sync with HEAD

Revision 1.73.14.1 / (download) - annotate - [select for diffs], Sun Nov 11 16:48:54 2007 UTC (15 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.73: +22 -15 lines
Diff to previous 1.73 (colored)

Sync with HEAD.

Revision 1.73.16.1 / (download) - annotate - [select for diffs], Thu Nov 8 11:00:23 2007 UTC (15 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.73: +22 -15 lines
Diff to previous 1.73 (colored)

sync with -HEAD

Revision 1.74 / (download) - annotate - [select for diffs], Wed Nov 7 15:56:23 2007 UTC (15 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.73: +22 -15 lines
Diff to previous 1.73 (colored)

Merge tty changes from the vmlocking branch.

Revision 1.73.2.4 / (download) - annotate - [select for diffs], Fri Oct 19 15:54:29 2007 UTC (15 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.73.2.3: +14 -2 lines
Diff to previous 1.73.2.3 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored)

In the tty code, defer posting singals to a soft interrupt. Avoids
touching process state from a hardware interrupt, and avoids locking
problems (tty_lock is always held when the signals are sent).

Revision 1.73.2.3 / (download) - annotate - [select for diffs], Fri Oct 19 13:08:11 2007 UTC (15 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.73.2.2: +3 -2 lines
Diff to previous 1.73.2.2 (colored) to branchpoint 1.73 (colored)

Replace the tty locks with a global tty_lock.

Revision 1.67.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:46:42 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.67.2.2: +3 -3 lines
Diff to previous 1.67.2.2 (colored) to branchpoint 1.67 (colored)

sync with head.

Revision 1.73.2.2 / (download) - annotate - [select for diffs], Sun Jul 1 21:51:01 2007 UTC (15 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.73.2.1: +2 -2 lines
Diff to previous 1.73.2.1 (colored) to branchpoint 1.73 (colored)

Adapt to callout API change.

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Wed Mar 21 20:11:57 2007 UTC (15 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.73: +7 -13 lines
Diff to previous 1.73 (colored)

- Replace more simple_locks, and fix up in a few places.
- Use condition variables.
- LOCK_ASSERT -> KASSERT.

Revision 1.72.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 06:00:55 2007 UTC (15 years, 11 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) next main 1.73 (colored)

Sync with HEAD.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:42 2007 UTC (15 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-idlelwp-base8, vmlocking-base, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, jmcneill-base, hpcarm-cleanup
Branch point for: vmlocking, mjf-devfs, matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.67.2.2 / (download) - annotate - [select for diffs], Mon Feb 26 09:12:16 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.67.2.1: +2 -2 lines
Diff to previous 1.67.2.1 (colored) to branchpoint 1.67 (colored)

sync with head.

Revision 1.72 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:37 2007 UTC (16 years ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.71: +2 -2 lines
Diff to previous 1.71 (colored)

Merge newlock2 to head.

Revision 1.71.6.1 / (download) - annotate - [select for diffs], Fri Nov 17 16:34:40 2006 UTC (16 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.71: +2 -2 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

Checkpoint work in progress.

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:59:42 2006 UTC (16 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

sync with head

Revision 1.70.8.1 / (download) - annotate - [select for diffs], Mon Jun 26 12:54:29 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

sync with head.

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:12:04 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.67: +8 -9 lines
Diff to previous 1.67 (colored)

sync with head.

Revision 1.70.14.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:11:13 2006 UTC (16 years, 7 months ago) by chap
Branch: chap-midi
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

Sync with head.

Revision 1.70.6.1 / (download) - annotate - [select for diffs], Sat Jun 3 19:44:04 2006 UTC (16 years, 8 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

Sync with head.

Revision 1.71 / (download) - annotate - [select for diffs], Sat Jun 3 18:18:26 2006 UTC (16 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: newlock2
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored)

Introduce SA_NOKERNINFO, a flag for SIGINFO not to print kernel messages.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:21 2005 UTC (17 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, peter-altq, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, chap-midi
Changes since 1.69: +4 -4 lines
Diff to previous 1.69 (colored)

merge ktrace-lwp.

Revision 1.61.2.7 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:36 2005 UTC (17 years, 2 months ago) by christos
Branch: ktrace-lwp
Changes since 1.61.2.6: +4 -5 lines
Diff to previous 1.61.2.6 (colored) next main 1.62 (colored)

Sync with head.

Revision 1.69 / (download) - annotate - [select for diffs], Sat Dec 3 17:10:46 2005 UTC (17 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: ktrace-lwp-base
Changes since 1.68: +4 -4 lines
Diff to previous 1.68 (colored)

Make sure that multiple header inclusion is done, it uses consistent names,
and it is around the whole code of the file, not parts of it.

Revision 1.67.8.1 / (download) - annotate - [select for diffs], Tue Nov 29 21:23:33 2005 UTC (17 years, 2 months ago) by yamt
Branch: yamt-readahead
Changes since 1.67: +1 -2 lines
Diff to previous 1.67 (colored) next main 1.68 (colored)

sync with head.

Revision 1.68 / (download) - annotate - [select for diffs], Sun Nov 27 05:35:52 2005 UTC (17 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-readahead-base3
Changes since 1.67: +1 -2 lines
Diff to previous 1.67 (colored)

Overhaul how TTY line disciplines are handled:
- Replace references to linesw[0] with a ttyldisc_default() function
  that returns the default ("termios") line discipline.
- The linesw[] array is gone, replaced by a linked list.
- ttyldisc_add() and ttyldisc_remove() have been replaced by
  ttyldisc_attach() and ttyldisc_detach().
- Things that provide line disciplines are now responsible for
  registering those disciplines with the system.  The linesw
  structures are no longer declared in tty_conf.c
- Line disciplines are now refcounted; a lookup causes a reference to
  be held.  ttyldisc_release() releases the reference.  Attempts to
  detach an in-use line discipline result in EBUSY.
- Fix function signature lossage in if_sl.c, if_strip.c, and tty_tb.c
  that was masked by the old tty_conf.c
- tty_init() is no longer necessary; delete it and its call from main().

Revision 1.65.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:38 2005 UTC (17 years, 9 months ago) by kent
Branch: kent-audio2
Changes since 1.65: +56 -55 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

sync with -current

Revision 1.61.2.6 / (download) - annotate - [select for diffs], Fri Apr 1 14:32:11 2005 UTC (17 years, 10 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.61.2.5: +3 -2 lines
Diff to previous 1.61.2.5 (colored)

Sync with HEAD.

Revision 1.65.6.2 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:52 2005 UTC (17 years, 10 months ago) by yamt
Branch: yamt-km
Changes since 1.65.6.1: +3 -2 lines
Diff to previous 1.65.6.1 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.67 / (download) - annotate - [select for diffs], Thu Mar 17 20:39:18 2005 UTC (17 years, 10 months ago) by kleink
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base2, yamt-readahead-base, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, kent-audio2-base
Branch point for: yamt-readahead, yamt-lazymbuf
Changes since 1.66: +3 -2 lines
Diff to previous 1.66 (colored)

A couple of <sys/select.h>-related changes:
* Factor out struct selinfo and its header dependencies into its own header,
  <sys/selinfo.h>, to avoid namespace pollution.
* Include <sys/selinfo.h> in user-visible headers where necessary.

Revision 1.65.6.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:56 2005 UTC (17 years, 11 months ago) by yamt
Branch: yamt-km
Changes since 1.65: +54 -54 lines
Diff to previous 1.65 (colored)

sync with head.

Revision 1.61.2.5 / (download) - annotate - [select for diffs], Fri Feb 4 11:48:07 2005 UTC (18 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.61.2.4: +54 -54 lines
Diff to previous 1.61.2.4 (colored)

Sync with HEAD.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Feb 3 19:20:02 2005 UTC (18 years ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base2, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.65: +54 -54 lines
Diff to previous 1.65 (colored)

de-__P

Revision 1.61.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:38:51 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.61.2.3: +4 -4 lines
Diff to previous 1.61.2.3 (colored)

Fix the sync with head I botched.

Revision 1.61.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:56:31 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.61.2.2: +4 -4 lines
Diff to previous 1.61.2.2 (colored)

Sync with HEAD.

Revision 1.61.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:56:33 2004 UTC (18 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.61.2.1: +44 -50 lines
Diff to previous 1.61.2.1 (colored)

Sync with HEAD

Revision 1.65 / (download) - annotate - [select for diffs], Sun Apr 25 06:13:38 2004 UTC (18 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

Constify the table argument to ttspeedtab.

Revision 1.64 / (download) - annotate - [select for diffs], Fri Feb 13 11:36:23 2004 UTC (18 years, 11 months ago) by wiz
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored)

Uppercase CPU, plural is CPUs.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Aug 7 16:34:20 2003 UTC (19 years, 6 months ago) by agc
Branch: MAIN
Changes since 1.62: +2 -6 lines
Diff to previous 1.62 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.62 / (download) - annotate - [select for diffs], Tue Jul 8 06:18:00 2003 UTC (19 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.61: +42 -44 lines
Diff to previous 1.61 (colored)

prototype must not have variable name

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:27:18 2003 UTC (19 years, 7 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.61: +4 -4 lines
Diff to previous 1.61 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.61 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:29 2003 UTC (19 years, 7 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:22 2003 UTC (19 years, 7 months ago) by darrenr
Branch: MAIN
Changes since 1.59: +4 -4 lines
Diff to previous 1.59 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.59 / (download) - annotate - [select for diffs], Mon Feb 17 22:19:28 2003 UTC (19 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

tputchar grows a flags argument.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Feb 12 03:46:02 2003 UTC (20 years ago) by christos
Branch: MAIN
Changes since 1.57: +3 -7 lines
Diff to previous 1.57 (colored)

no point in do while loop protection.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Feb 5 20:34:56 2003 UTC (20 years ago) by pk
Branch: MAIN
Changes since 1.56: +2 -1 lines
Diff to previous 1.56 (colored)

Pull in <sys/lock.h>.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Feb 5 15:49:02 2003 UTC (20 years ago) by pk
Branch: MAIN
Changes since 1.55: +15 -2 lines
Diff to previous 1.55 (colored)

Make the tty subsystem MP-safe..

..as far as mere mortals are able to, since this code illustrates the finest
points that Italian haute cuisine has to offer.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Feb 1 06:23:52 2003 UTC (20 years ago) by thorpej
Branch: MAIN
Changes since 1.54: +4 -1 lines
Diff to previous 1.54 (colored)

Add extensible malloc types, adapted from FreeBSD.  This turns
malloc types into a structure, a pointer to which is passed around,
instead of an int constant.  Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.

Revision 1.50.2.3 / (download) - annotate - [select for diffs], Wed Dec 11 06:50:09 2002 UTC (20 years, 2 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.50.2.2: +3 -3 lines
Diff to previous 1.50.2.2 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

Sync with HEAD.

Revision 1.54 / (download) - annotate - [select for diffs], Sun Dec 1 22:57:17 2002 UTC (20 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.53: +4 -4 lines
Diff to previous 1.53 (colored)

Reorder things so that multiple inclusion protection so optional
definitions are outside the protection checks.

Revision 1.50.2.2 / (download) - annotate - [select for diffs], Mon Nov 11 22:16:42 2002 UTC (20 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.50.2.1: +2 -1 lines
Diff to previous 1.50.2.1 (colored) to branchpoint 1.50 (colored)

Catch up to -current

Revision 1.53 / (download) - annotate - [select for diffs], Wed Oct 23 09:15:01 2002 UTC (20 years, 3 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored)

merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

Revision 1.52.4.3 / (download) - annotate - [select for diffs], Sat Oct 13 17:42:53 2001 UTC (21 years, 4 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.52.4.2: +11 -5 lines
Diff to previous 1.52.4.2 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored)

Revert the t_dev -> t_devvp change in struct tty. The way that tty
structs are currently used (especially by console ttys) aren't
ready for it, and this will require quite a few changes.

Revision 1.52.4.2 / (download) - annotate - [select for diffs], Tue Sep 18 19:14:00 2001 UTC (21 years, 4 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.52.4.1: +8 -1 lines
Diff to previous 1.52.4.1 (colored) to branchpoint 1.52 (colored)

Various changes to make cloning devices possible:

	* Add an extra argument (struct vnode **) to VOP_OPEN. If it is
	  not NULL, specfs will create a cloned (aliased) vnode during
	  the call, and return it there. The caller should release and
	  unlock the original vnode if a new vnode was returned. The
	  new vnode is returned locked.

	* Add a flag field to the cdevsw and bdevsw structures.
	  DF_CLONING indicates that it wants a new vnode for each
	  open (XXX is there a better way? devprop?)

	* If a device is cloning, always call the close entry
	  point for a VOP_CLOSE.


Also, rewrite cons.c to do the right thing with vnodes. Use VOPs
rather then direct device entry calls. Suggested by mycroft@

Light to moderate testing done an i386 system (arch doesn't matter
though, these are MI changes).

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Fri Sep 7 04:45:44 2001 UTC (21 years, 5 months ago) by thorpej
Branch: thorpej-devvp
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

Commit my "devvp" changes to the thorpej-devvp branch.  This
replaces the use of dev_t in most places with a struct vnode *.

This will form the basic infrastructure for real cloning device
support (besides being architecurally cleaner -- it'll be good
to get away from using numbers to represent objects).

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Tue Jul 10 13:27:57 2001 UTC (21 years, 7 months ago) by lukem
Branch: kqueue
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

prototype ttykqfilter()

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:10:00 2001 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored)

Catch up to -current.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Jun 8 15:43:34 2001 UTC (21 years, 8 months ago) by mrg
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, kqueue-beforemerge, kqueue-base, ifpoll-base, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Branch point for: thorpej-devvp, kqueue
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored)

_KERNEL_OPT is your friend.

Revision 1.51 / (download) - annotate - [select for diffs], Wed May 2 10:32:08 2001 UTC (21 years, 9 months ago) by scw
Branch: MAIN
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

Add `l_poll' to `struct linesw' and provide an xxxpoll() entry point
in each tty driver to indirect through it.

This allows tty line-disciplines to handle poll(2) system calls.

Revision 1.47.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:06:42 2000 UTC (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.47.2.1: +2 -2 lines
Diff to previous 1.47.2.1 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored)

Sync with HEAD.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:11:39 2000 UTC (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.47: +4 -7 lines
Diff to previous 1.47 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.50 / (download) - annotate - [select for diffs], Wed Nov 1 23:38:57 2000 UTC (22 years, 3 months ago) by eeh
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

Change line discipline to a pointer rather than an array index for
modularity.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Mar 28 05:52:15 2000 UTC (22 years, 10 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.48: +1 -7 lines
Diff to previous 1.48 (colored)

Declarations of ctty{open,read,write,ioctl,poll} are covered by the
cdev_decl(ctty) in <sys/comf.h>.

Revision 1.48 / (download) - annotate - [select for diffs], Thu Mar 23 06:31:52 2000 UTC (22 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.47: +4 -1 lines
Diff to previous 1.47 (colored)

New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.

Revision 1.45.6.1 / (download) - annotate - [select for diffs], Tue Nov 30 13:36:19 1999 UTC (23 years, 2 months ago) by itojun
Branch: kame
CVS Tags: kame_141_19991130
Changes since 1.45: +3 -2 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code).  Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Mon Jun 21 19:22:57 1999 UTC (23 years, 7 months ago) by cgd
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.45: +3 -2 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

pull up rev(s) 1.47 from trunk. (cgd)

Revision 1.45.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:30:26 1999 UTC (23 years, 7 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.45: +3 -14 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

Sync w/ -current.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Apr 30 05:29:20 1999 UTC (23 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base
Branch point for: thorpej_scsipi
Changes since 1.46: +3 -2 lines
Diff to previous 1.46 (colored)

add checks for COMPAT_OSF1 in the appropriate places

Revision 1.46 / (download) - annotate - [select for diffs], Sun Apr 25 02:56:30 1999 UTC (23 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.45: +1 -13 lines
Diff to previous 1.45 (colored)

g/c REAL_CLISTS.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Dec 16 11:01:01 1998 UTC (24 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, kame_14_19990705, kame_14_19990628
Branch point for: netbsd-1-4, kame, chs-ubc2
Changes since 1.44: +2 -1 lines
Diff to previous 1.44 (colored)

Another COMPAT_43 lossage fix (reported by Richard Earnshaw)

Revision 1.44 / (download) - annotate - [select for diffs], Fri Jun 26 00:07:26 1998 UTC (24 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base, chs-ubc
Changes since 1.43: +2 -1 lines
Diff to previous 1.43 (colored)

defopt COMPAT_SVR4

Revision 1.43 / (download) - annotate - [select for diffs], Thu Jun 25 23:40:59 1998 UTC (24 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

defopt COMPAT_SUNOS

Revision 1.42 / (download) - annotate - [select for diffs], Thu Jun 25 22:49:48 1998 UTC (24 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +5 -1 lines
Diff to previous 1.41 (colored)

defopt COMPAT_FREEBSD

Revision 1.41 / (download) - annotate - [select for diffs], Sun Mar 22 00:55:38 1998 UTC (24 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.40: +9 -7 lines
Diff to previous 1.40 (colored)

Move the code to wait for carrier on a tty into a common function, since it
depends only on device-independent state bits.
Implement SunOS-style `dialout' devices.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Mar 21 04:02:47 1998 UTC (24 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

Replace TS_WOPEN with t_wopen, per mail on tech-kern.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Mar 1 02:24:15 1998 UTC (24 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:13:59 1998 UTC (24 years, 11 months ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +3 -3 lines
Diff to previous 1.1.1.2 (colored)

Import 4.4BSD-Lite2

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:11:12 1998 UTC (24 years, 11 months ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1.1.1: +217 -1 lines
Diff to previous 1.1.1.1 (colored)

Import 4.4BSD-Lite for reference

Revision 1.36.8.1 / (download) - annotate - [select for diffs], Tue Oct 14 16:03:50 1997 UTC (25 years, 4 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Oct 9 12:59:50 1997 UTC (25 years, 4 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-base
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

Make various standard wmesg strings const.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Oct 9 12:50:03 1997 UTC (25 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Make wmesg arguments to various functions const.

Revision 1.36.4.2 / (download) - annotate - [select for diffs], Fri Feb 7 06:35:45 1997 UTC (26 years ago) by mikel
Branch: is-newarp
Changes since 1.36.4.1: +276 -0 lines
Diff to previous 1.36.4.1 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

eliminate obsolete t_min and t_time shortcuts; from Bill Studenmund in
  PR kern/2440.

Revision 1.36.4.1, Fri Feb 7 06:35:44 1997 UTC (26 years ago) by mikel
Branch: is-newarp
Changes since 1.36: +0 -276 lines
FILE REMOVED

file tty.h was added on branch is-newarp on 1997-02-07 06:35:45 +0000

Revision 1.36 / (download) - annotate - [select for diffs], Fri Feb 7 06:35:44 1997 UTC (26 years ago) by mikel
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, mrg-vm-swap, marc-pcmcia-bp, is-newarp-before-merge, is-newarp-base, bouyer-scsipi
Branch point for: marc-pcmcia, is-newarp
Changes since 1.35: +9 -10 lines
Diff to previous 1.35 (colored)

eliminate obsolete t_min and t_time shortcuts; from Bill Studenmund in
  PR kern/2440.

Revision 1.35 / (download) - annotate - [select for diffs], Wed Jan 22 07:09:28 1997 UTC (26 years ago) by mikel
Branch: MAIN
Changes since 1.34: +7 -2 lines
Diff to previous 1.34 (colored)

add multiple inclusion protection

Revision 1.34 / (download) - annotate - [select for diffs], Fri Oct 25 21:22:10 1996 UTC (26 years, 3 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-setroot
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

make the first arg of b_to_q (the u_char * that points to data to be
stuffed into the queue) const, since it's not modified.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Sep 7 12:41:36 1996 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

Implement poll(2).

Revision 1.30.4.1 / (download) - annotate - [select for diffs], Sun Jun 2 09:08:13 1996 UTC (26 years, 8 months ago) by mrg
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA
Changes since 1.30: +13 -1 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

pull up tty stats "bug fix".

Revision 1.32 / (download) - annotate - [select for diffs], Thu May 30 22:00:20 1996 UTC (26 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored)

now uses queue macros, should include <sys/queue.h>

Revision 1.31 / (download) - annotate - [select for diffs], Wed May 29 02:02:42 1996 UTC (26 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.30: +12 -1 lines
Diff to previous 1.30 (colored)

impliment ttylist stats based on disk stats.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Apr 9 20:55:44 1996 UTC (26 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-2-base
Branch point for: netbsd-1-2
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

fix extra spaces at ends of lines, etc.  (all spacing nits.)

Revision 1.29 / (download) - annotate - [select for diffs], Fri Feb 9 18:25:44 1996 UTC (27 years ago) by christos
Branch: MAIN
Changes since 1.28: +17 -1 lines
Diff to previous 1.28 (colored)

Filesystem prototype changes

Revision 1.28 / (download) - annotate - [select for diffs], Sun Mar 26 20:24:57 1995 UTC (27 years, 10 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

KERNEL -> _KERNEL

Revision 1.27 / (download) - annotate - [select for diffs], Sun Oct 30 22:11:10 1994 UTC (28 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

Change argument list of ttioctl() to match other ioctl functions.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Oct 30 21:50:02 1994 UTC (28 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

be more careful with types, also pull in headers where necessary.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Jun 29 06:45:53 1994 UTC (28 years, 7 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.24: +244 -1 lines
Diff to previous 1.24 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jun 27 19:32:26 1994 UTC (28 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.23: +1 -1 lines
Diff to previous 1.23 (colored)

new standard, minimally intrusive ID format

Revision 1.23 / (download) - annotate - [select for diffs], Wed May 25 09:59:54 1994 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +1 -1 lines
Diff to previous 1.22 (colored)

use u_char's instead of char's; else the TTY_QUOTE bit can get accidentally
be set.

Revision 1.22 / (download) - annotate - [select for diffs], Thu May 12 03:54:01 1994 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.21: +1 -1 lines
Diff to previous 1.21 (colored)

kill stupid idea...

Revision 1.21 / (download) - annotate - [select for diffs], Thu May 5 05:40:22 1994 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.20: +1 -1 lines
Diff to previous 1.20 (colored)

lots of changes: prototype migration, move lots of variables, definitions,
and structure elements around.  kill some unnecessary type and macro
definitions.  standardize clock handling.  More changes than you'd want.

Revision 1.20 / (download) - annotate - [select for diffs], Wed May 4 03:42:37 1994 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.19: +1 -1 lines
Diff to previous 1.19 (colored)

Rename a lot of process flags.

Revision 1.19.2.2 / (download) - annotate - [select for diffs], Fri Mar 18 03:46:19 1994 UTC (28 years, 10 months ago) by cgd
Branch: nvm
Changes since 1.19.2.1: +1 -0 lines
Diff to previous 1.19.2.1 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

add t_hwiflow

Revision 1.19.2.1, Fri Mar 18 03:46:18 1994 UTC (28 years, 10 months ago) by cgd
Branch: nvm
Changes since 1.19: +0 -1 lines
FILE REMOVED

file tty.h was added on branch nvm on 1994-03-18 03:46:19 +0000

Revision 1.19 / (download) - annotate - [select for diffs], Fri Mar 18 03:46:18 1994 UTC (28 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: wnvm, nvm-base
Branch point for: nvm
Changes since 1.18: +1 -1 lines
Diff to previous 1.18 (colored)

add t_hwiflow

Revision 1.18 / (download) - annotate - [select for diffs], Sun Feb 20 22:04:26 1994 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +1 -1 lines
Diff to previous 1.17 (colored)

Correct prototype for ttylclose().

Revision 1.17 / (download) - annotate - [select for diffs], Wed Feb 9 21:14:40 1994 UTC (29 years ago) by mycroft
Branch: MAIN
Changes since 1.16: +1 -1 lines
Diff to previous 1.16 (colored)

All ioctl routines take a struct proc * now.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jan 28 13:39:25 1994 UTC (29 years ago) by deraadt
Branch: MAIN
Changes since 1.15: +1 -1 lines
Diff to previous 1.15 (colored)

ttrstrt() prototype

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jan 13 07:36:21 1994 UTC (29 years, 1 month ago) by glass
Branch: MAIN
Changes since 1.14: +1 -1 lines
Diff to previous 1.14 (colored)

fixed a typo in a comment

Revision 1.12.2.4 / (download) - annotate - [select for diffs], Sun Nov 14 21:18:59 1993 UTC (29 years, 3 months ago) by mycroft
Branch: magnum
Changes since 1.12.2.3: +1 -1 lines
Diff to previous 1.12.2.3 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

T_LINEP --> t_sc, from trunk.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Nov 9 06:24:04 1993 UTC (29 years, 3 months ago) by glass
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored)

T_LINEP member of struct tty becomes t_sc.  This replaces the
#define t_sc T_LINEP
that appear in tty_tb.c, if_sl.c, and if_ppp.h

Revision 1.12.2.3 / (download) - annotate - [select for diffs], Wed Nov 3 13:48:21 1993 UTC (29 years, 3 months ago) by mycroft
Branch: magnum
Changes since 1.12.2.2: +1 -1 lines
Diff to previous 1.12.2.2 (colored) to branchpoint 1.12 (colored)

Merge changes from trunk.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Oct 31 19:28:04 1993 UTC (29 years, 3 months ago) by glass
Branch: MAIN
Changes since 1.12: +1 -1 lines
Diff to previous 1.12 (colored)

removed slip and ppp specific prototypes from tty.h where they didn't belong.
moved them to tty_conf.c within #if Nwhatever > 0 where they do belong.
made sure that if_sl.c, and if_ppp.c still compile quietly.

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Sun Oct 17 14:01:50 1993 UTC (29 years, 3 months ago) by mycroft
Branch: magnum
Changes since 1.12.2.1: +1 -1 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored)

Add prototype for ttrstrt().

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Thu Sep 30 17:33:36 1993 UTC (29 years, 4 months ago) by mycroft
Branch: magnum
Changes since 1.12: +1 -1 lines
Diff to previous 1.12 (colored)

tty.h: Remove some old TS_* #defines that are no longer used.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Aug 29 13:48:22 1993 UTC (29 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: magnum-base
Branch point for: magnum
Changes since 1.11: +1 -1 lines
Diff to previous 1.11 (colored)

tty XXstart() routines return void

Revision 1.11 / (download) - annotate - [select for diffs], Sat Aug 14 06:38:50 1993 UTC (29 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +1 -1 lines
Diff to previous 1.10 (colored)

ppp from paul mackerras

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Mon Jul 19 05:52:28 1993 UTC (29 years, 6 months ago) by mycroft
Branch: netbsd-0-9
Changes since 1.10.2.1: +1 -0 lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

Move flushq() macro into tty.h.

Revision 1.10.2.1, Mon Jul 19 05:52:27 1993 UTC (29 years, 6 months ago) by mycroft
Branch: netbsd-0-9
Changes since 1.10: +0 -1 lines
FILE REMOVED

file tty.h was added on branch netbsd-0-9 on 1993-07-19 05:52:28 +0000

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jul 19 05:52:27 1993 UTC (29 years, 6 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA
Branch point for: netbsd-0-9
Changes since 1.9: +1 -1 lines
Diff to previous 1.9 (colored)

Move flushq() macro into tty.h.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jul 12 11:36:53 1993 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (colored)

Change tty code to use clist interface, but with ring buffer implementation.
Also, fix a couple of bugs in tty.c and pccons.c, and some gross kluginess
in the hp300 stuff.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jun 27 05:59:09 1993 UTC (29 years, 7 months ago) by andrew
Branch: MAIN
Changes since 1.7: +1 -1 lines
Diff to previous 1.7 (colored)

ANSIfications - lots of function prototyping.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jun 12 12:30:24 1993 UTC (29 years, 8 months ago) by andrew
Branch: MAIN
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 (colored)

Fixed up nested comments to be gcc -Wall clean.

Revision 1.6 / (download) - annotate - [select for diffs], Thu May 20 11:49:08 1993 UTC (29 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (colored)

have proc.h, socketvar.h, tty.h include select.h automatically

Revision 1.5 / (download) - annotate - [select for diffs], Tue May 18 18:20:41 1993 UTC (29 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

make kernel select interface be one-stop shopping & clean it all up.

Revision 1.4 / (download) - annotate - [select for diffs], Mon May 10 23:16:06 1993 UTC (29 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

ring buffer now uses rbchar's (shorts) instead of chars.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Apr 19 01:23:30 1993 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

Add consistent multiple-inclusion protection.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

after 0.2.2 "stable" patches applied

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (29 years, 10 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: WFJ-386bsd-01
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (29 years, 10 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>