The NetBSD Project

CVS log for src/sys/dev/cons.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.95: download - view: text, markup, annotated - select for diffs
Sat Sep 2 17:44:59 2023 UTC (15 months, 1 week ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +2 -10 lines
heartbeat(9): Move #ifdef HEARTBEAT to sys/heartbeat.h.

Less error-prone this way, and the callers are less cluttered.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Sat Sep 2 17:44:12 2023 UTC (15 months, 1 week ago) by riastradh
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +30 -3 lines
cons(9): Suspend heartbeat checks while in polled-input mode.

This goes into a tight loop at high IPL, so it is to be expected that
the heartbeats will stop happening.

Should fix heartbeat panics at root device prompt on boot.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Sat Sep 2 17:43:46 2023 UTC (15 months, 1 week ago) by riastradh
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +12 -11 lines
cons(9): Sort includes.

No functional change intended.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Tue Oct 25 23:21:33 2022 UTC (2 years, 1 month ago) by riastradh
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -3 lines
console(4), constty(4): Rip off the kernel lock, take three.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Tue Oct 25 23:21:13 2022 UTC (2 years, 1 month ago) by riastradh
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +70 -27 lines
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.90: download - view: text, markup, annotated - select for diffs
Fri Oct 7 18:59:37 2022 UTC (2 years, 2 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +27 -70 lines
Revert "constty(4): Make MP-safe."

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

Revision 1.89: download - view: text, markup, annotated - select for diffs
Fri Oct 7 18:55:50 2022 UTC (2 years, 2 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +3 -3 lines
Revert "console(4), constty(4): Rip off the kernel lock, take two."

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

Revision 1.88: download - view: text, markup, annotated - select for diffs
Thu Oct 6 19:59:35 2022 UTC (2 years, 2 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -3 lines
console(4), constty(4): Rip off the kernel lock, take two.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Thu Oct 6 19:58:41 2022 UTC (2 years, 2 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +70 -27 lines
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.86: download - view: text, markup, annotated - select for diffs
Tue Oct 4 05:20:01 2022 UTC (2 years, 2 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +29 -74 lines
Revert "constty(4): Make MP-safe."

Something appears to be wrong with this.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Tue Oct 4 05:19:30 2022 UTC (2 years, 2 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +3 -3 lines
Revert "console(4), constty(4): Rip off the kernel lock."

Needs more testing.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Mon Oct 3 19:57:25 2022 UTC (2 years, 2 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +3 -3 lines
console(4), constty(4): Rip off the kernel lock.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Mon Oct 3 19:57:05 2022 UTC (2 years, 2 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +74 -29 lines
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.82: download - view: text, markup, annotated - select for diffs
Mon Oct 3 19:13:08 2022 UTC (2 years, 2 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +4 -2 lines
cons(9): Check the unit number on close too.

Races between multiple opens, some of which fail, might lead to
closing a bad unit number -- not clear there's a good way to prevent
this.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Mon Oct 3 19:12:51 2022 UTC (2 years, 2 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +44 -9 lines
cons(9): Serialize open and close.

Kernel lock wasn't enough for this -- cdevvp, vn_lock, or VOP_OPEN
could block, allowing another thread to re-enter open.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Mon Oct 3 19:12:29 2022 UTC (2 years, 2 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +18 -2 lines
cons(9): New function cn_set_tab.

Increment of progress toward eliminating bare access to cn_tab so we
can make more things MP-safe without the kernel lock (and maybe some
day better formalize console detection and switching).

Revision 1.79: download - view: text, markup, annotated - select for diffs
Mon Aug 22 00:20:56 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +5 -3 lines
cons(4): Don't barge ahead if cdevvp has failed -- return error now.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Mon Aug 22 00:20:45 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +9 -13 lines
cons(4): Ignore error from vn_lock(vp, LK_EXCUSIVE|LK_RETRY).

This never fails, as is asserted in vn_lock whenever LK_RETRY is set
and LK_NOWAIT is not.

Revision 1.75.18.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:02 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +3 -2 lines
Merge changes from current as of 20200406

Revision 1.75.24.1: download - view: text, markup, annotated - select for diffs
Mon Dec 9 15:58:48 2019 UTC (5 years ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +3 -2 lines
Pull up following revision(s) (requested by riastradh in ticket #528):

	sys/dev/cons.c: revision 1.76
	sys/dev/cons.c: revision 1.77

Fix reference count leak in cons(4).

Don't forget to vrele after you're done, folks!
XXX pullup-9
XXX pullup-8
XXX pullup-7
XXX pullup-6... 5... 4 might not have had this bug!

Restore historical $Hdr$ tag after git cvsexportcommit nixed it.

Revision 1.75.10.1: download - view: text, markup, annotated - select for diffs
Sun Dec 8 10:30:31 2019 UTC (5 years ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +3 -2 lines
Pull up following revision(s) (requested by riastradh in ticket #1469):

	sys/dev/cons.c: revision 1.76
	sys/dev/cons.c: revision 1.77

Fix reference count leak in cons(4).
Don't forget to vrele after you're done, folks!
Restore historical $Hdr$ tag after git cvsexportcommit nixed it.

Revision 1.72.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Dec 8 10:27:32 2019 UTC (5 years ago) by martin
Branches: netbsd-7-0
Diff to: previous 1.72.2.1: preferred, colored; next MAIN 1.72.2.2: preferred, colored
Changes since revision 1.72.2.1: +3 -2 lines
Pull up following revision(s) (requested by riastradh in ticket #1717):

	sys/dev/cons.c: revision 1.76
	sys/dev/cons.c: revision 1.77

Fix reference count leak in cons(4).
Don't forget to vrele after you're done, folks!
Restore historical $Hdr$ tag after git cvsexportcommit nixed it.

Revision 1.72.2.1.6.1: download - view: text, markup, annotated - select for diffs
Sun Dec 8 10:26:36 2019 UTC (5 years ago) by martin
Branches: netbsd-7-1
Diff to: previous 1.72.2.1: preferred, colored; next MAIN 1.72.2.2: preferred, colored
Changes since revision 1.72.2.1: +3 -2 lines
Pull up following revision(s) (requested by riastradh in ticket #1717):

	sys/dev/cons.c: revision 1.76
	sys/dev/cons.c: revision 1.77

Fix reference count leak in cons(4).
Don't forget to vrele after you're done, folks!
Restore historical $Hdr$ tag after git cvsexportcommit nixed it.

Revision 1.72.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 8 10:25:38 2019 UTC (5 years ago) by martin
Branches: netbsd-7
Diff to: previous 1.72.2.1: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.2.1: +3 -2 lines
Pull up following revision(s) (requested by riastradh in ticket #1717):

	sys/dev/cons.c: revision 1.76
	sys/dev/cons.c: revision 1.77

Fix reference count leak in cons(4).
Don't forget to vrele after you're done, folks!
Restore historical $Hdr$ tag after git cvsexportcommit nixed it.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Fri Dec 6 04:15:38 2019 UTC (5 years ago) by riastradh
Branches: 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, 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
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -3 lines
Restore historical $Hdr$ tag after git cvsexportcommit nixed it.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Fri Dec 6 03:45:33 2019 UTC (5 years ago) by riastradh
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +4 -3 lines
Fix reference count leak in cons(4).

Don't forget to vrele after you're done, folks!

XXX pullup-9
XXX pullup-8
XXX pullup-7
XXX pullup-6... 5... 4 might not have had this bug!

Revision 1.69.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:58 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.69.2.1: preferred, colored; branchpoint 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69.2.1: +24 -0 lines
update from HEAD

Revision 1.72.4.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:06 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.72.4.1: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.4.1: +18 -2 lines
Sync with HEAD

Revision 1.75: download - view: text, markup, annotated - select for diffs
Fri May 29 16:26:45 2015 UTC (9 years, 6 months ago) by macallan
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, 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, pgoyette-compat, 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, netbsd-9-base, netbsd-9-0-RC1, netbsd-8-base, 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, localcount-20160914, jdolecek-ncqfixes-base, jdolecek-ncqfixes, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, netbsd-9, netbsd-8
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +18 -2 lines
for some reason the previous commit causes ARCS firmware on sgimips64 to
spew an endless stream of white ( or rather, blue ) spaces. So revert to
the old code for sgimips only until I can figure out why.
Now sgimips64 n32 kernels boot again.

Revision 1.72.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:08 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +12 -4 lines
Sync with HEAD

Revision 1.68.10.1: download - view: text, markup, annotated - select for diffs
Tue Mar 24 08:58:29 2015 UTC (9 years, 8 months ago) by snj
Branches: netbsd-6
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +3 -3 lines
Pull up following revision(s) (requested by nakayama in ticket #1267):
	sys/dev/cons.c: revision 1.74 via patch
Fix strange kernel output sequence "\n\r" observed in serial
consoles.  Output '\r' before '\n' in conversion.

Revision 1.65.20.1: download - view: text, markup, annotated - select for diffs
Wed Mar 18 16:30:44 2015 UTC (9 years, 8 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +3 -3 lines
Pull up following revision(s) (requested by nakayama in ticket #1952):
	sys/dev/cons.c: revision 1.74
Fix strange kernel output sequence "\n\r" observed in serial
consoles.  Output '\r' before '\n' in conversion.

Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 9 08:00:46 2015 UTC (9 years, 9 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, 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-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE
Branch point for: netbsd-7-1, netbsd-7-0
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +4 -4 lines
Pull up following revision(s) (requested by nakayama in ticket #574):
	sys/dev/cons.c: revision 1.74
Fix strange kernel output sequence "\n\r" observed in serial
consoles.  Output '\r' before '\n' in conversion.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Thu Mar 5 14:02:55 2015 UTC (9 years, 9 months ago) by nakayama
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +4 -4 lines
Fix strange kernel output sequence "\n\r" observed in serial
consoles.  Output '\r' before '\n' in conversion.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon Feb 23 06:54:12 2015 UTC (9 years, 9 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +10 -2 lines
Fall back to nullcons if configured.

Revision 1.69.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:35 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +26 -6 lines
Rebase to HEAD as of a few days ago.

Revision 1.71.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:50 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +3 -2 lines
Rebase.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:35 2014 UTC (10 years, 4 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base, netbsd-7-base
Branch point for: nick-nhusb, netbsd-7
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -2 lines
Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.

Revision 1.68.4.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:19 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.68.4.1: preferred, colored; branchpoint 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68.4.1: +25 -6 lines
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.69.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:35 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69: +25 -6 lines
sync with head

Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun Mar 16 05:20:26 2014 UTC (10 years, 9 months ago) by dholland
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +13 -4 lines
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Sun Dec 22 18:05:40 2013 UTC (10 years, 11 months ago) by matt
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +14 -4 lines
raise spl to IPL_HIGH when calling cngetc.  Make sure to call
do_critpollhooks() when outputing and getting input.

Revision 1.68.4.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:25 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +4 -4 lines
sync with head

Revision 1.68.8.1: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:24 2012 UTC (12 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +4 -4 lines
sync to latest -current.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Tue Mar 13 18:40:29 2012 UTC (12 years, 9 months ago) by elad
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +4 -4 lines
Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.

Most of these changes were brought up in the following messages:

    http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
    http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
    http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html

Thanks to christos, manu, njoly, and jmmv for input.

Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.

Revision 1.67.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:07:38 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +3 -42 lines
Sync with HEAD.

Revision 1.66.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:52:59 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.66.4.1: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.4.1: +3 -42 lines
sync with head

Revision 1.67.4.1: download - view: text, markup, annotated - select for diffs
Thu Feb 17 12:00:09 2011 UTC (13 years, 9 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +3 -42 lines
Sync with HEAD

Revision 1.68: download - view: text, markup, annotated - select for diffs
Tue Feb 8 20:20:26 2011 UTC (13 years, 10 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +3 -42 lines
Remove clause 3 (UCB advertising clause) from the University of Utah
copyright.  Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.

Extra verification by snj@.

Revision 1.65.32.1: download - view: text, markup, annotated - select for diffs
Fri Jan 7 02:27:42 2011 UTC (13 years, 11 months ago) by matt
Branches: matt-nb5-pq3
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +14 -4 lines
Add critpollhooks.

Revision 1.66.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:45:57 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +4 -4 lines
Sync with HEAD.

Revision 1.65.10.2: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:14 2010 UTC (14 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.65.10.1: preferred, colored; branchpoint 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.10.1: +4 -4 lines
sync with head.

Revision 1.66.4.1: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:33 2010 UTC (14 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +4 -4 lines
sync with head

Revision 1.67: download - view: text, markup, annotated - select for diffs
Thu Jun 24 13:03:08 2010 UTC (14 years, 5 months ago) by hannken
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +4 -4 lines
Clean up vnode lock operations pass 2:

VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.

Revision 1.65.10.1: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:21 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +2 -3 lines
sync with head

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Nov 23 02:13:45 2009 UTC (15 years ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +2 -3 lines
Remove some unecessary includes sys/user.h header.

Revision 1.64.8.1: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:35 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +20 -30 lines
sync with HEAD

Revision 1.64.14.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:31 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +20 -30 lines
Sync with HEAD.

Revision 1.56.2.5: download - view: text, markup, annotated - select for diffs
Mon Feb 4 09:23:18 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.56.2.4: preferred, colored; branchpoint 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56.2.4: +20 -30 lines
sync with head.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Thu Jan 24 17:32:52 2008 UTC (16 years, 10 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, 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-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-net80211-sync-base, nick-net80211-sync, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, 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-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, matt-nb5-pq3-base, 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, matt-mips64-base2, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, netbsd-5, matt-nb5-pq3
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +20 -30 lines
specfs changes for PR kern/37717 (raidclose() is no longer called on
shutdown). There are still problems with device access and a PR will be
filed.

- Kill checkalias(). Allow multiple vnodes to reference a single device.

- Don't play dangerous tricks with block vnodes to ensure that only one
  vnode can describe a block device. Instead, prohibit concurrent opens of
  block devices. As a bonus remove the unreliable code that prevents
  multiple file system mounts on the same device. It's no longer needed.

- Track opens by vnode and by device. Issue cdev_close() when the last open
  goes away, instead of abusing vnode::v_usecount to tell if the device is
  open.

Revision 1.56.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:33:11 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.56.2.3: preferred, colored; branchpoint 1.56: preferred, colored
Changes since revision 1.56.2.3: +21 -41 lines
sync with head.

Revision 1.63.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:05:00 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +20 -40 lines
Sync with head.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:00:28 2007 UTC (17 years, 5 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs, matt-armv6
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +20 -40 lines
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.63.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 13 20:56:20 2007 UTC (17 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +20 -40 lines
- Make the devsw interface MP safe, and add some comments.
- Allow individual block/character drivers to be marked MP safe.
- Provide wrappers around the device methods that look up the
  device, returning ENXIO if it's not found, and acquire the
  kernel lock if needed.

Revision 1.62.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:53:03 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +3 -3 lines
Sync with HEAD.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:01:41 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.56.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:09:53 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.56.2.2: preferred, colored; branchpoint 1.56: preferred, colored
Changes since revision 1.56.2.2: +26 -13 lines
sync with head.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Fri Feb 9 21:55:26 2007 UTC (17 years, 10 months ago) by ad
Branches: MAIN
CVS tags: post-newlock2-merge, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +26 -13 lines
Merge newlock2 to head.

Revision 1.56.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:47:50 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.56.2.1: preferred, colored; branchpoint 1.56: preferred, colored
Changes since revision 1.56.2.1: +4 -3 lines
sync with head.

Revision 1.59.6.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:16:53 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.59.6.1: preferred, colored; branchpoint 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59.6.1: +3 -3 lines
sync with head.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:32:45 2006 UTC (18 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
__unused removal on arguments; approved by core.

Revision 1.59.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:28 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3 lines
sync with head

Revision 1.59.4.1: download - view: text, markup, annotated - select for diffs
Sat Oct 21 15:19:49 2006 UTC (18 years, 1 month ago) by ad
Branches: newlock2
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +26 -13 lines
Add #ifdef'd out locking around constty.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:30:50 2006 UTC (18 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.57.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:49:09 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +5 -3 lines
sync with head

Revision 1.57.8.2: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:43:52 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.57.8.1: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.8.1: +4 -3 lines
sync with head

Revision 1.59: download - view: text, markup, annotated - select for diffs
Fri Jul 21 16:48:47 2006 UTC (18 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -3 lines
- Use the LWP cached credentials where sane.
- Minor cosmetic changes.

Revision 1.56.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:02:11 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +12 -11 lines
sync with head.

Revision 1.57.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:36:03 2006 UTC (18 years, 6 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +4 -3 lines
Sync with head.

Revision 1.57.12.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:07 2006 UTC (18 years, 6 months ago) by tron
Branches: peter-altq
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +4 -3 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.57.8.1: download - view: text, markup, annotated - select for diffs
Wed May 24 10:57:36 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +4 -3 lines
sync with head.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun May 14 21:42:26 2006 UTC (18 years, 7 months ago) by elad
Branches: MAIN
CVS tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +4 -3 lines
integrate kauth.

Revision 1.57.10.3: download - view: text, markup, annotated - select for diffs
Sat May 6 23:31:27 2006 UTC (18 years, 7 months ago) by christos
Branches: elad-kernelauth
Diff to: previous 1.57.10.2: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.10.2: +3 -2 lines
- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.57.10.2: download - view: text, markup, annotated - select for diffs
Fri Mar 10 14:39:01 2006 UTC (18 years, 9 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.57.10.1: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.10.1: +3 -3 lines
generic_authorize() -> kauth_authorize_generic().

Revision 1.57.10.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 01:44:48 2006 UTC (18 years, 9 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -3 lines
Adapt to kernel authorization KPI.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:20:53 2005 UTC (19 years ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +11 -11 lines
merge ktrace-lwp.

Revision 1.48.2.6: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:03:00 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.48.2.5: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.2.5: +5 -4 lines
Sync with HEAD. Here we go again...

Revision 1.56: download - view: text, markup, annotated - select for diffs
Tue Jun 21 14:01:11 2005 UTC (19 years, 5 months ago) by ws
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +4 -3 lines
PR-30566: Poll must not return <sys/errno.h> values.
Start with those places I can easily test.

Revision 1.53.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:44 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +8 -8 lines
sync with -current

Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Apr 28 07:54:39 2005 UTC (19 years, 7 months ago) by martin
Branches: MAIN
CVS tags: kent-audio2-base
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -3 lines
White space police.

Revision 1.53.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:33:53 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +7 -7 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.48.2.5: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:40:53 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.48.2.4: preferred, colored
Changes since revision 1.48.2.4: +7 -7 lines
Sync with HEAD.

Hi Perry!

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:26:58 2005 UTC (19 years, 9 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, 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
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +7 -7 lines
nuke trailing whitespace

Revision 1.48.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:26:24 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.48.2.3: preferred, colored
Changes since revision 1.48.2.3: +11 -11 lines
Fix the sync with head I botched.

Revision 1.48.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:44:28 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.48.2.2: preferred, colored
Changes since revision 1.48.2.2: +11 -11 lines
Sync with HEAD.

Revision 1.48.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:44:53 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.48.2.1: preferred, colored
Changes since revision 1.48.2.1: +96 -54 lines
Sync with HEAD

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun May 16 15:44:11 2004 UTC (20 years, 7 months ago) by wiz
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3 lines
"panicking" needs a k.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Oct 18 21:26:22 2003 UTC (21 years, 1 month ago) by cdi
Branches: 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
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3 lines
Revert previous change as it breaks the build on a number of ports.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Oct 17 18:16:43 2003 UTC (21 years, 2 months ago) by cdi
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -3 lines
Introduce null console. This pseudo device acts as a normal console with the
exception that it discards any output, and is useful for booting the kernel
on headless boxes.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Oct 3 13:15:52 2003 UTC (21 years, 2 months ago) by dsl
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +59 -52 lines
Make 'minor(dev) == 1' a device that isn't affected by TIOCCONS.
For /dev/constty so that you can grab kernel messages when logged in
on the 'console'.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:30:51 2003 UTC (21 years, 4 months ago) by agc
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +38 -3 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

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

Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:25:59 2003 UTC (21 years, 5 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +11 -11 lines
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.48: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:29:58 2003 UTC (21 years, 5 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +9 -9 lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:30 2003 UTC (21 years, 5 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +11 -11 lines
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.46: download - view: text, markup, annotated - select for diffs
Thu Mar 6 00:38:26 2003 UTC (21 years, 9 months ago) by matt
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +31 -45 lines
Add cn_halt and cn_flush entries to consdevs.  (needed for dma-only console
devices).

Revision 1.37.4.6: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:08:45 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.37.4.5: preferred, colored; branchpoint 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.4.5: +27 -1 lines
Catch up to -current

Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Oct 23 09:13:01 2002 UTC (22 years, 1 month ago) by jdolecek
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +29 -3 lines
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.37.4.5: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:41:27 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.37.4.4: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.4.4: +2 -2 lines
Catch up to -current.

Revision 1.40.2.4: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:38:19 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.40.2.3: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.2.3: +52 -19 lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri Sep 27 15:37:08 2002 UTC (22 years, 2 months ago) by provos
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-base
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -4 lines
remove trailing \n in panic().  approved perry.

Revision 1.37.4.4: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:19:18 2002 UTC (22 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.37.4.3: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.4.3: +42 -14 lines
Catch up to -current.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Fri Sep 6 13:18:43 2002 UTC (22 years, 3 months ago) by gehenna
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +44 -16 lines
Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.

Revision 1.40.2.3: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:43:45 2002 UTC (22 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.40.2.2: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.2.2: +3 -3 lines
sync kqueue branch with HEAD

Revision 1.41.8.2: download - view: text, markup, annotated - select for diffs
Thu Aug 29 05:22:19 2002 UTC (22 years, 3 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.41.8.1: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.8.1: +3 -3 lines
catch up with -current.

Revision 1.37.4.3: download - view: text, markup, annotated - select for diffs
Tue Aug 13 02:19:18 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.37.4.2: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.4.2: +2 -2 lines
Catch up to -current.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Aug 2 19:55:32 2002 UTC (22 years, 4 months ago) by soren
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -3 lines
As in PR kern/10999 from  Matthew Orgass, make the panic message more
helpful in the case where no console device has registered.

Revision 1.41.8.1: download - view: text, markup, annotated - select for diffs
Thu May 16 04:52:05 2002 UTC (22 years, 7 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +44 -16 lines
Add the character device switch.
Replace the direct-access to devsw table with calling devsw API.

Revision 1.40.2.2: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:52:47 2002 UTC (22 years, 11 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.40.2.1: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.2.1: +4 -1 lines
Sync kqueue branch with -current.

Revision 1.37.4.2: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:13:41 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.37.4.1: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.4.1: +4 -1 lines
Catch up to -current.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Tue Nov 13 05:32:50 2001 UTC (23 years, 1 month ago) by lukem
Branches: MAIN
CVS tags: 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, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -1 lines
add RCSIDs

Revision 1.40.4.5: download - view: text, markup, annotated - select for diffs
Sat Oct 13 17:42:45 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.40.4.4: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.4.4: +10 -5 lines
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.40.4.4: download - view: text, markup, annotated - select for diffs
Wed Sep 26 15:28:09 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.40.4.3: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.4.3: +13 -9 lines
* add a VCLONED vnode flag that indicates a vnode representing a cloned
  device.
* rename REVOKEALL to REVOKEALIAS, and add a REVOKECLONE flag, to pass
  to VOP_REVOKE
* the revoke system call will revoke all aliases, as before, but not the
  clones
* vdevgone is called when detaching a device, so make it use REVOKECLONE
  to get rid of all clones as well
* clean up all uses of VOP_OPEN wrt. locking.
* add a few VOPS to spec_vnops that need to do something when it's a
  clone vnode (access and getattr)
* add a copy of the vnode vattr structure of the original 'master' vnode
  to the specinfo of a cloned vnode. could possibly redirect getattr to
  the 'master' vnode, but this has issues with revoke
* add a vdev_reassignvp function that disassociates a vnode from its
  original device, and reassociates it with the specified dev_t. to be
  used by cloning devices only, in case a new minor is allocated.
* change all direct references in drivers to v_devcookie and v_rdev
  to vdev_privdata(vp) and vdev_rdev(vp). for diagnostic purposes
  when debugging race conditions that still exist wrt. locking and
  revoking vnodes.
* make the locking state of a vnode consistent when passed to
  d_open and d_close (unlocked). locked would be better, but has
  some deadlock issues

Revision 1.40.4.3: download - view: text, markup, annotated - select for diffs
Thu Sep 20 11:15:42 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.40.4.2: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.4.2: +3 -3 lines
Use vget, not vref, when acquiring an already existing console device vnode.

Revision 1.40.4.2: download - view: text, markup, annotated - select for diffs
Tue Sep 18 19:13:49 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.40.4.1: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.4.1: +53 -36 lines
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.40.4.1: download - view: text, markup, annotated - select for diffs
Fri Sep 7 04:45:22 2001 UTC (23 years, 3 months ago) by thorpej
Branches: thorpej-devvp
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +36 -29 lines
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.40.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 10 14:01:58 2001 UTC (23 years, 5 months ago) by lukem
Branches: kqueue
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +22 -1 lines
implement cnkqfilter()

Revision 1.37.4.1: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:01:15 2001 UTC (23 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3 lines
Catch up to -current.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Jun 4 09:45:03 2001 UTC (23 years, 6 months ago) by jdolecek
Branches: 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
Branch point for: thorpej-devvp, kqueue
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3 lines
Use back the 'u'&037 form - since it's CTRL-u, it's more readable that way
Use \007 instead of symbolic constant, since that's what is more often used.
Pointed out by Robert Elz.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Jun 3 17:56:10 2001 UTC (23 years, 6 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -3 lines
cngetsn(): cosmetic only - use '\025' instead 'u'&037, and '\b' instead '\007'

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Jun 3 14:29:42 2001 UTC (23 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -2 lines
fix comment

Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:39:46 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +74 -6 lines
Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 17:06:14 2000 UTC (24 years, 5 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +15 -5 lines
Sync w/ netbsd-1-5-base.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Jun 12 05:02:22 2000 UTC (24 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, 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
Branch point for: nathanw_sa
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +15 -5 lines
check for when cnopen() will call itself recursively, and panic instead of losing badly.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon May 8 16:30:57 2000 UTC (24 years, 7 months ago) by itojun
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +49 -1 lines
move static function getstr() to cons.c, make it publically available
as cngetsn().  there will be other consumer.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Mar 30 12:45:27 2000 UTC (24 years, 8 months ago) by augustss
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -2 lines
Remove register declarations.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Mar 6 21:36:12 2000 UTC (24 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +11 -1 lines
- Implement cnbell() -- ring the console bell.  The cn_bell entrypoint
  is optional.
- Add cn_bell to statically allocated consdevs as appropriate.

Revision 1.32.22.1: download - view: text, markup, annotated - select for diffs
Tue Oct 26 21:12:00 1999 UTC (25 years, 1 month ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +10 -1 lines
Pull up revision 1.33 (requested by he):
  Catch a console configuration error.  Instead of jumping through
  cdevsw indexed on major(NODEV), call panic, fixing PR#8690.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Aug 4 14:40:54 1999 UTC (25 years, 4 months ago) by leo
Branches: 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
Branch point for: thorpej_scsipi
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +10 -1 lines
Catch a console configuration error. Instead of jumping through cdevsw indexed
on major(NODEV), call panic...

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Sep 7 12:40:54 1996 UTC (28 years, 3 months ago) by mycroft
Branches: MAIN
CVS tags: thorpej-signal-base, thorpej-signal, thorpej-setroot, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, 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, mrg-vm-swap, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, is-newarp-before-merge, is-newarp-base, is-newarp, eeh-paddr_t-base, eeh-paddr_t, chs-ubc2-base, chs-ubc2, chs-ubc-base, chs-ubc, bouyer-scsipi
Branch point for: netbsd-1-4
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -4 lines
Implement poll(2).

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Sep 2 06:44:41 1996 UTC (28 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3 lines
tty stop functions really should return void, not int, and certainly not both.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Apr 8 19:57:30 1996 UTC (28 years, 8 months ago) by jonathan
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -2 lines
fixes for -Wall -Wmissing-prototypes:
add "return (0);" to cnstop()'s emtpy body.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Feb 4 02:04:08 1996 UTC (28 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -4 lines
cnputc returns void

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Nov 25 00:03:35 1995 UTC (29 years ago) by cgd
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -2 lines
fix definition of nullcnpollc, and add a prototype for it.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Apr 11 22:08:06 1995 UTC (29 years, 8 months ago) by pk
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +1 -3 lines
Remove duplicate definition of `constty'.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Apr 11 10:06:38 1995 UTC (29 years, 8 months ago) by mellon
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +1 -28 lines
Split cninit from cons so ports that can't use it don't have to include it.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Apr 10 06:30:52 1995 UTC (29 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +9 -1 lines
Add a dummy cnstop().

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Mar 24 15:29:46 1995 UTC (29 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +5 -2 lines
don't let args default, return values, add protos

Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Dec 14 19:09:13 1994 UTC (30 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
Remove extra arg to d_open and vn_open().

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Nov 14 06:00:10 1994 UTC (30 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
added extra argument to vn_open

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Oct 30 22:16:37 1994 UTC (30 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +14 -1 lines
Add a nullcnpollc(), for people who don't want to deal.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Oct 30 21:47:31 1994 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -1 lines
be more careful with types, also pull in headers where necessary.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Oct 26 17:56:53 1994 UTC (30 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +17 -1 lines
Implement cnpollc().

Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Jun 29 06:31:32 1994 UTC (30 years, 5 months ago) by cgd
Branches: 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
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -1 lines
New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Jun 27 19:49:45 1994 UTC (30 years, 5 months ago) by cgd
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -4 lines
new standard, minimally intrusive ID format

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Jun 8 11:19:41 1994 UTC (30 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
Reverse sense of vfinddev().

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Apr 11 21:53:54 1994 UTC (30 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -9 lines
undo that last

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Apr 11 19:53:29 1994 UTC (30 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +10 -4 lines
don't cdevvp() if a vnode for the dev already exists.  Note that that's
conceptually icky; you end up ref'ing a 'real' vnode, and hence perhaps
tying down a file system; should be able to reference a 'fake' one,
but i doesn't appear save to cdevvp() if vnode for same dev is already
around...  also, mark vfinddev()s XXX (for later).

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Apr 10 01:11:28 1994 UTC (30 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +12 -1 lines
and fix the other case.  ugly fix, but it works

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Feb 16 00:09:39 1994 UTC (30 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3 lines
get sense of two comparisons right.  from Chris Hopps <chopps@lamp>

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Feb 1 03:35:06 1994 UTC (30 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
new location of cons.h

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Jan 27 07:55:44 1994 UTC (30 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +73 -58 lines
make behaviour with constty consistent, deal properly with the case
where there's no console, and set things up so that this can be made
'shared' eventually.  look at diffs for exact changes.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Jan 27 05:30:38 1994 UTC (30 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
if CN_REMOTE, don't redirect output.  this file needs some help,
but now at least i'm thinking about it again.

Revision 1.8.4.3: download - view: text, markup, annotated - select for diffs
Wed Oct 27 05:46:35 1993 UTC (31 years, 1 month ago) by mycroft
Branches: magnum
Diff to: previous 1.8.4.2: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.4.2: +3 -3 lines
Don't compile com console stuff, for now.

Revision 1.8.4.2: download - view: text, markup, annotated - select for diffs
Sun Oct 17 14:03:04 1993 UTC (31 years, 2 months ago) by mycroft
Branches: magnum
Diff to: previous 1.8.4.1: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.4.1: +1 -6 lines
Rename cninit() to consinit(), and junk the old, empty consinit().

Revision 1.8.4.1: download - view: text, markup, annotated - select for diffs
Wed Oct 6 12:42:52 1993 UTC (31 years, 2 months ago) by mycroft
Branches: magnum
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
cn_init --> cn_attach

Revision 1.8.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 20 09:12:25 1993 UTC (31 years, 4 months ago) by cgd
Branches: netbsd-0-9
CVS tags: netbsd-0-9-patch-001, netbsd-0-9-RELEASE, netbsd-0-9-BETA
Diff to: previous 1.8.2.1: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.2.1: +1 -22 lines
decommit that last one; it's not nearly that easy to fix right...
see also: vnode aliases!

Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 20 08:35:59 1993 UTC (31 years, 4 months ago) by cgd
Branches: netbsd-0-9
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +23 -2 lines
fix from Christoph Robitschko to keep 'kill -HUP' of syslogd
from spamming the console.  arguably less-than-elegant, but it works
and i don't want to see a slew of bug reports come 0.9...

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Jul 7 11:00:23 1993 UTC (31 years, 5 months ago) by deraadt
Branches: MAIN
CVS tags: netbsd-0-9-base, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, magnum-base
Branch point for: netbsd-0-9, magnum
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -3 lines
pccons.c now dynamically allocates it's "struct tty"
cons.c's "struct tty *cn_tty" wasn't used by any of the kernel, and goes away.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Jun 27 06:02:49 1993 UTC (31 years, 5 months ago) by andrew
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +11 -3 lines
ANSIfications - removed all implicit function return types and argument
definitions.  Ensured that all files include "systm.h" to gain access to
general prototypes.  Casts where necessary.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri May 28 09:10:31 1993 UTC (31 years, 6 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +10 -1 lines
1. It is now possible to build a kernel that does not have a pc0 device driver.
2. "press any key to reboot" reads the key from the console.
3. wddump() still needs a non-blocking getc() routine (or flush)

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat May 22 11:41:13 1993 UTC (31 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -2 lines
add include of select.h if necessary for protos, or delete if extraneous

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue May 18 18:18:55 1993 UTC (31 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +12 -18 lines
make kernel select interface be one-stop shopping & clean it all up.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue May 4 05:47:50 1993 UTC (31 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +6 -2 lines
add pg_wait, which must be set if you want pg() to actually wait for keybd
input.  this one is way useful...

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Mar 21 18:04:42 1993 UTC (31 years, 8 months ago) by cgd
Branches: MAIN
CVS tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +20 -1 lines
after 0.2.2 "stable" patches applied

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 9 months ago) by cgd
Branches: WFJ-920714
CVS tags: WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 9 months ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>