The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.87 / (download) - annotate - [select for diffs], Fri Jan 13 15:46:40 2023 UTC (15 months ago) by hannken
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.86: +7 -4 lines
Diff to previous 1.86 (unified) to selected 1.49 (unified)

It is not sufficient to have a comment /* Sanity check the size. */,
also check the size is greater than zero and a multiple of DEV_BSIZE.

Reported-by: syzbot+318187e5124846542f8d@syzkaller.appspotmail.com

Revision 1.86 / (download) - annotate - [select for diffs], Sat Sep 24 23:20:13 2022 UTC (18 months, 3 weeks ago) by thorpej
Branch: 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, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.85: +5 -5 lines
Diff to previous 1.85 (unified) to selected 1.49 (unified)

malloc(9) -> kmem(9)

Revision 1.85 / (download) - annotate - [select for diffs], Thu May 14 08:34:18 2020 UTC (3 years, 11 months ago) by msaitoh
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, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (unified) to selected 1.49 (unified)

Remove extra semicolon.

Revision 1.80.4.4 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:14 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.80.4.3: +1 -1 lines
Diff to previous 1.80.4.3 (unified) to branchpoint 1.80 (unified) next main 1.81 (unified) to selected 1.49 (unified)

Sync with HEAD

Revision 1.83.4.1 / (download) - annotate - [select for diffs], Mon Apr 20 11:29:02 2020 UTC (4 years ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (unified) next main 1.84 (unified) to selected 1.49 (unified)

Sync with HEAD

Revision 1.84 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:02 2020 UTC (4 years ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20200421, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (unified) to selected 1.49 (unified)

constify

Revision 1.80.4.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:18 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.80.4.2: +2 -1 lines
Diff to previous 1.80.4.2 (unified) to branchpoint 1.80 (unified) to selected 1.49 (unified)

Mostly merge changes from HEAD upto 20200411

Revision 1.80.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:02 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.80.4.1: +3 -3 lines
Diff to previous 1.80.4.1 (unified) to branchpoint 1.80 (unified) to selected 1.49 (unified)

Merge changes from current as of 20200406

Revision 1.82.2.1 / (download) - annotate - [select for diffs], Sat Jan 25 22:38:45 2020 UTC (4 years, 2 months ago) by ad
Branch: ad-namecache
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (unified) next main 1.83 (unified) to selected 1.49 (unified)

Sync with head.

Revision 1.83 / (download) - annotate - [select for diffs], Sat Jan 18 14:02:18 2020 UTC (4 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base, ad-namecache-base3, ad-namecache-base2
Branch point for: bouyer-xenpvh
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (unified) to selected 1.49 (unified)

Mark the cdev MPSAFE too.

Revision 1.82 / (download) - annotate - [select for diffs], Thu Aug 29 16:20:48 2019 UTC (4 years, 7 months ago) by hannken
Branch: MAIN
CVS Tags: phil-wifi-20191119, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.81: +4 -3 lines
Diff to previous 1.81 (unified) to selected 1.49 (unified)

Add "d_minphys" to "mddkdriver" to make physio() on wedges happy.

Revision 1.80.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:04 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.80: +4 -6 lines
Diff to previous 1.80 (unified) to selected 1.49 (unified)

Sync with HEAD

Revision 1.81 / (download) - annotate - [select for diffs], Sun May 26 10:22:07 2019 UTC (4 years, 10 months ago) by hannken
Branch: MAIN
CVS Tags: 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
Changes since 1.80: +4 -6 lines
Diff to previous 1.80 (unified) to selected 1.49 (unified)

Take "sc_lock" after calling disk_ioctl() to make GPT partitioning work.

Revision 1.80 / (download) - annotate - [select for diffs], Sat Mar 3 19:26:12 2018 UTC (6 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, 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, jdolecek-ncqfixes-base, jdolecek-ncqfixes, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi
Changes since 1.79: +12 -4 lines
Diff to previous 1.79 (unified) to selected 1.49 (unified)

conditionally elide conditional for rump.

Revision 1.67.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:58 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.67.2.1: +21 -22 lines
Diff to previous 1.67.2.1 (unified) to branchpoint 1.67 (unified) next main 1.68 (unified) to selected 1.49 (unified)

update from HEAD

Revision 1.79 / (download) - annotate - [select for diffs], Sat Oct 28 03:47:24 2017 UTC (6 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.78: +2 -3 lines
Diff to previous 1.78 (unified) to selected 1.49 (unified)

Kill some more extern cfdriver xyz_cd in favour of #include "ioconf.h".

Revision 1.78.6.6 / (download) - annotate - [select for diffs], Wed May 17 01:44:17 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.78.6.5: +3 -6 lines
Diff to previous 1.78.6.5 (unified) to branchpoint 1.78 (unified) next main 1.79 (unified) to selected 1.49 (unified)

At suggestion of chuq@, modify config_attach_pseudo() to return with a
reference held on the device.

Adapt callers to expect the reference to exist, and to ensure that the
reference is released.

Revision 1.78.6.5 / (download) - annotate - [select for diffs], Sun May 14 05:38:38 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.78.6.4: +4 -3 lines
Diff to previous 1.78.6.4 (unified) to branchpoint 1.78 (unified) to selected 1.49 (unified)

Mark variable as __diagused to fix build-break

Revision 1.78.6.4 / (download) - annotate - [select for diffs], Sat Apr 29 11:12:14 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.78.6.3: +3 -5 lines
Diff to previous 1.78.6.3 (unified) to branchpoint 1.78 (unified) to selected 1.49 (unified)

Remove more unnecessary #include for sys/localcount.h

Revision 1.78.6.3 / (download) - annotate - [select for diffs], Fri Apr 28 06:00:33 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.78.6.2: +4 -6 lines
Diff to previous 1.78.6.2 (unified) to branchpoint 1.78 (unified) to selected 1.49 (unified)

Introduce config_detach_release() which does all the work from the
former config_detach().  Now, config_detach() simply acquires a
reference to the device, which config_detach_release() can release!

This is needed because some drivers call config_detach() with a
reference, while other drivers have not been updated to use the
localcount reference mechanism.  So we provide a shim to make
everyone equal.

Revision 1.78.6.2 / (download) - annotate - [select for diffs], Thu Apr 27 23:18:21 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.78.6.1: +3 -6 lines
Diff to previous 1.78.6.1 (unified) to branchpoint 1.78 (unified) to selected 1.49 (unified)

Don't reference a known-NULL pointer, and remove duplicated calls to
mutex_enter() and mutex_exit()

Revision 1.78.6.1 / (download) - annotate - [select for diffs], Thu Apr 27 05:36:35 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.78: +58 -17 lines
Diff to previous 1.78 (unified) to selected 1.49 (unified)

Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita.  There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.

Revision 1.71.4.5 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:40 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.71.4.4: +5 -5 lines
Diff to previous 1.71.4.4 (unified) to branchpoint 1.71 (unified) next main 1.72 (unified) to selected 1.49 (unified)

Sync with HEAD

Revision 1.76.2.7 / (download) - annotate - [select for diffs], Sat Aug 6 00:19:07 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.76.2.6: +6 -2 lines
Diff to previous 1.76.2.6 (unified) to branchpoint 1.76 (unified) next main 1.77 (unified) to selected 1.49 (unified)

Sync with HEAD

Revision 1.76.2.6 / (download) - annotate - [select for diffs], Thu Jul 28 23:59:15 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.76.2.5: +41 -62 lines
Diff to previous 1.76.2.5 (unified) to branchpoint 1.76 (unified) to selected 1.49 (unified)

Since md(4) has a pointer from the softc back to the device_t, it is
OK for us to use device_lookup_private_acquire() rather than calling
device_lookup_acquire() followed by device_private().

So, redo earlier changes, which reduces diff to the original code at
the branch-point.

Revision 1.78 / (download) - annotate - [select for diffs], Wed Jul 27 05:14:40 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (unified) to selected 1.49 (unified)

Don't mutex_exit() if we didn't mutex_enter().

Pointed out by coypu. Thanks!

Revision 1.76.2.5 / (download) - annotate - [select for diffs], Wed Jul 27 03:25:00 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.76.2.4: +7 -7 lines
Diff to previous 1.76.2.4 (unified) to branchpoint 1.76 (unified) to selected 1.49 (unified)

Repair the inevitable tyops in previous.

Revision 1.76.2.4 / (download) - annotate - [select for diffs], Wed Jul 27 01:13:50 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.76.2.3: +74 -19 lines
Diff to previous 1.76.2.3 (unified) to branchpoint 1.76 (unified) to selected 1.49 (unified)

Update a few more drivers for localcount(9)

Revision 1.77 / (download) - annotate - [select for diffs], Wed Jul 27 01:09:44 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: MAIN
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (unified) to selected 1.49 (unified)

If we're going to check for a NULL pointer, do the check before we
dereference it (to get the lock address).

Revision 1.76.2.3 / (download) - annotate - [select for diffs], Tue Jul 26 05:54:39 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.76.2.2: +4 -4 lines
Diff to previous 1.76.2.2 (unified) to branchpoint 1.76 (unified) to selected 1.49 (unified)

Rename LOCALCOUNT_INITIALIZER to DEVSW_MODULE_INIT.  This better describes
what we're doing, and why.

Revision 1.76.2.2 / (download) - annotate - [select for diffs], Tue Jul 19 06:26:58 2016 UTC (7 years, 9 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.76.2.1: +4 -12 lines
Diff to previous 1.76.2.1 (unified) to branchpoint 1.76 (unified) to selected 1.49 (unified)

Instead of repeatedly typing the conditional initialization of the
.d_localcount members in the various {b,c}devsw, define an initializer
macro and use it.  This also removes the need for defining new symbols
for each 'struct localcount'.

As suggested by riastradh@

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Mon Jul 18 03:49:59 2016 UTC (7 years, 9 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.76: +13 -2 lines
Diff to previous 1.76 (unified) to selected 1.49 (unified)

Rump drivers are always installed via devsw_attach() so we need to
always allocate a 'struct localcount' for these drivers whenever they
are built as modules.

Revision 1.71.4.4 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:08 2016 UTC (8 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.71.4.3: +13 -2 lines
Diff to previous 1.71.4.3 (unified) to branchpoint 1.71 (unified) to selected 1.49 (unified)

Sync with HEAD

Revision 1.76 / (download) - annotate - [select for diffs], Mon Jan 4 16:24:52 2016 UTC (8 years, 3 months ago) by hannken
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319
Branch point for: pgoyette-localcount
Changes since 1.75: +13 -2 lines
Diff to previous 1.75 (unified) to selected 1.49 (unified)

Notify disk subsystem of the current geometry.

Ok: Michael van Elst

Revision 1.71.4.3 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:56 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.71.4.2: +3 -4 lines
Diff to previous 1.71.4.2 (unified) to branchpoint 1.71 (unified) to selected 1.49 (unified)

Sync with HEAD

Revision 1.75 / (download) - annotate - [select for diffs], Thu Aug 20 14:40:17 2015 UTC (8 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.74: +3 -4 lines
Diff to previous 1.74 (unified) to selected 1.49 (unified)

include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.

Revision 1.71.4.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:06 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.71.4.1: +6 -4 lines
Diff to previous 1.71.4.1 (unified) to branchpoint 1.71 (unified) to selected 1.49 (unified)

Sync with HEAD

Revision 1.74 / (download) - annotate - [select for diffs], Sun Apr 26 15:15:20 2015 UTC (8 years, 11 months ago) by mlelstv
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.73: +5 -3 lines
Diff to previous 1.73 (unified) to selected 1.49 (unified)

Use C99-style initializers for struct dkdriver.

Revision 1.71.4.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:08 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.71: +5 -17 lines
Diff to previous 1.71 (unified) to selected 1.49 (unified)

Sync with HEAD

Revision 1.73 / (download) - annotate - [select for diffs], Fri Jan 2 19:42:06 2015 UTC (9 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (unified) to selected 1.49 (unified)

We have three sets of DTYPE_ constants in the kernel:
	altq		Drop 		Type
	disklabel	Disk 		Type
	file		Descriptor	Type
(not to mention constants that contain the string DTYPE).
Let's make them two, by changing the disklabel one to be DisK TYPE since the
other disklabel constants seem to do that. Not many userland programs use
these constants (and the ones that they do are mostly in ifdefs). They will
be fixed shortly.

Revision 1.72 / (download) - annotate - [select for diffs], Wed Dec 31 19:52:05 2014 UTC (9 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.71: +4 -16 lines
Diff to previous 1.71 (unified) to selected 1.49 (unified)

make more drivers use disk_ioctl, and add a dev parameter to it so that
we can merge the "easy" disklabel ioctls to it. Ultimately all this will
go do dk_ioctl once all the drivers have been converted.

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:35 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.67: +26 -5 lines
Diff to previous 1.67 (unified) to selected 1.49 (unified)

Rebase to HEAD as of a few days ago.

Revision 1.69.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:50 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.69: +4 -2 lines
Diff to previous 1.69 (unified) next main 1.70 (unified) to selected 1.49 (unified)

Rebase.

Revision 1.71 / (download) - annotate - [select for diffs], Fri Jul 25 08:10:35 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-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
Branch point for: nick-nhusb
Changes since 1.70: +3 -2 lines
Diff to previous 1.70 (unified) to selected 1.49 (unified)

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.70 / (download) - annotate - [select for diffs], Fri Jul 25 08:02:19 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.69: +3 -2 lines
Diff to previous 1.69 (unified) to selected 1.49 (unified)

Add d_discard to all struct bdevsw instances I could find.

I've set them all to nodiscard. Some of them (wd, dk, vnd, ld,
raidframe, maybe cgd) should be implemented for real.

Revision 1.66.8.2 / (download) - annotate - [select for diffs], Thu May 22 11:40:19 2014 UTC (9 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.66.8.1: +24 -5 lines
Diff to previous 1.66.8.1 (unified) to branchpoint 1.66 (unified) next main 1.67 (unified) to selected 1.49 (unified)

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.67.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:35 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.67: +24 -5 lines
Diff to previous 1.67 (unified) next main 1.68 (unified) to selected 1.49 (unified)

sync with head

Revision 1.69 / (download) - annotate - [select for diffs], Sun Mar 16 05:20:26 2014 UTC (10 years, 1 month ago) by dholland
Branch: 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
Changes since 1.68: +20 -5 lines
Diff to previous 1.68 (unified) to selected 1.49 (unified)

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.68 / (download) - annotate - [select for diffs], Thu Mar 13 10:22:35 2014 UTC (10 years, 1 month ago) by hannken
Branch: MAIN
Changes since 1.67: +6 -2 lines
Diff to previous 1.67 (unified) to selected 1.49 (unified)

No need to detach (and return EBUSY) if dk_openmask is non-zero.

Revision 1.66.8.1 / (download) - annotate - [select for diffs], Tue Oct 30 17:20:49 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.66: +9 -2 lines
Diff to previous 1.66 (unified) to selected 1.49 (unified)

sync with head

Revision 1.66.14.1 / (download) - annotate - [select for diffs], Thu Jul 5 17:36:31 2012 UTC (11 years, 9 months ago) by riz
Branch: netbsd-6
CVS Tags: 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
Changes since 1.66: +9 -2 lines
Diff to previous 1.66 (unified) next main 1.67 (unified) to selected 1.49 (unified)

Pull up following revision(s) (requested by tsutsui in ticket #395):
	sys/fs/msdosfs/msdosfs_vfsops.c: revision 1.95
	sys/arch/atari/atari/autoconf.c: revision 1.62
	sys/dev/md.c: revision 1.67
Add a dirty hack for atari's ancient installation ramdisk:
 Forcibly configure md0, md1, and md2 devices before setroot()
 for atari's traditional "auto-load from floppy on open" md_root device
 which loads installation ramdisk image from floppy.
 md(4) has been changed dynamically configured at first open after 5.0
 and md devices won't appear in "root device:" prompt without this hack.
Tested on TT030.
Should be pulled up to netbsd-6.
Make sure that disklabel of md(4) device is initialized
in the case where it's configured in MD md_open_hook().
Without this, msdosfs_mountfs() (which is called from msdosfs_mountroot())
will be called with uninitialized disklabel (d_secsize == 0) and
it gets "panic: buf mem pool index 23" later on atari.
This is because getdisksize() doesn't check returned d_secsize value
and msdosfs_mountfs() blindly calls bread(9) with size==0 in that case.
Should be pulled up to netbsd-6 (at least for atari).
Add a sanity check if secsize returned from getdisksize() isn't bogus.
This prevent possible panic "panic: buf mem pool index 23" later in
vfs_bio.c:buf_mempoolidx().
(I'm not sure if it's okay for getdisksize() to assume that
 partinfo taken from DIOCGPART is properly initialized
 on all disk(9) devices or not)
See also:
http://mail-index.NetBSD.org/source-changes/2012/06/30/msg035298.html

Revision 1.67 / (download) - annotate - [select for diffs], Sat Jun 30 10:52:31 2012 UTC (11 years, 9 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.66: +9 -2 lines
Diff to previous 1.66 (unified) to selected 1.49 (unified)

Make sure that disklabel of md(4) device is initialized
in the case where it's configured in MD md_open_hook().

Without this, msdosfs_mountfs() (which is called from msdosfs_mountroot())
will be called with uninitialized disklabel (d_secsize == 0) and
it gets "panic: buf mem pool index 23" later on atari.
This is because getdisksize() doesn't check returned d_secsize value
and msdosfs_mountfs() blindly calls bread(9) with size==0 in that case.

Should be pulled up to netbsd-6 (at least for atari).

Revision 1.62.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:00 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.62: +182 -50 lines
Diff to previous 1.62 (unified) next main 1.63 (unified) to selected 1.49 (unified)

sync with head

Revision 1.66 / (download) - annotate - [select for diffs], Thu Nov 25 08:53:30 2010 UTC (13 years, 4 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, uebayasi-xip-base7, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, 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, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.65: +18 -7 lines
Diff to previous 1.65 (unified) to selected 1.49 (unified)

- Don't detach configured devices on last close.
- No kmem allocation and biodone() under lock (from rmind@netbsd.org).

Revision 1.65 / (download) - annotate - [select for diffs], Tue Nov 23 09:30:43 2010 UTC (13 years, 4 months ago) by hannken
Branch: MAIN
Changes since 1.64: +47 -14 lines
Diff to previous 1.64 (unified) to selected 1.49 (unified)

Make md(4) mp-safe.

Revision 1.64 / (download) - annotate - [select for diffs], Mon Nov 22 21:10:10 2010 UTC (13 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.63: +6 -2 lines
Diff to previous 1.63 (unified) to selected 1.49 (unified)

Don't have a COW (Compiler OW) in case there is no kernel_opt.

Revision 1.62.2.2 / (download) - annotate - [select for diffs], Thu Nov 18 16:09:46 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.62.2.1: +27 -1 lines
Diff to previous 1.62.2.1 (unified) to branchpoint 1.62 (unified) next main 1.63 (unified) to selected 1.49 (unified)

Implement XIP in md(4).

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Thu Nov 18 16:07:52 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.62: +121 -37 lines
Diff to previous 1.62 (unified) to selected 1.49 (unified)

Sync with HEAD.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Nov 11 11:07:06 2010 UTC (13 years, 5 months ago) by hannken
Branch: MAIN
CVS Tags: uebayasi-xip-base6
Changes since 1.62: +121 -37 lines
Diff to previous 1.62 (unified) to selected 1.49 (unified)

Change md(4) to:
- create md devices on first open and destroy on last close.
- add enough disk label support to make DIOCGDINFO and DIOCGPART work.
- add disk_busy()/disk_unbusy() instrumentation.

Ok: David Young <dyoung@netbsd.org>

Revision 1.56.12.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:27:32 2010 UTC (14 years ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.56: +13 -2 lines
Diff to previous 1.56 (unified) next main 1.57 (unified) to selected 1.49 (unified)

sync to netbsd-5

Revision 1.52.4.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:21 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.52.4.4: +7 -12 lines
Diff to previous 1.52.4.4 (unified) to branchpoint 1.52 (unified) next main 1.53 (unified) to selected 1.49 (unified)

sync with head

Revision 1.62 / (download) - annotate - [select for diffs], Thu Jan 21 02:14:42 2010 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.61: +7 -6 lines
Diff to previous 1.61 (unified) to selected 1.49 (unified)

Take care not to dereference a NULL softc.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Oct 22 20:15:45 2009 UTC (14 years, 6 months ago) by snj
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.60: +2 -8 lines
Diff to previous 1.60 (unified) to selected 1.49 (unified)

Drop 3rd and 4th clauses.  OK gwr@ leo@ (copyright holders).

Revision 1.52.4.4 / (download) - annotate - [select for diffs], Wed Aug 19 18:47:02 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.52.4.3: +49 -4 lines
Diff to previous 1.52.4.3 (unified) to branchpoint 1.52 (unified) to selected 1.49 (unified)

sync with head.

Revision 1.60 / (download) - annotate - [select for diffs], Tue Jul 28 17:55:27 2009 UTC (14 years, 8 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Changes since 1.59: +49 -4 lines
Diff to previous 1.59 (unified) to selected 1.49 (unified)

Make mdopen() and mdclose() maintain the openmask.  md_detach()
depends on the openmask to know whether it should either return
EBUSY because the device is open, or tear the device down.

Alan Barrett reports that this fixes kern/41725, in part: it prevents
the UVM fault, and the kernel detaches /dev/md0a after unmounting
/ on /dev/md0a instead of before.

Revision 1.57.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:31:45 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.57.2.1: +30 -6 lines
Diff to previous 1.57.2.1 (unified) to branchpoint 1.57 (unified) next main 1.58 (unified) to selected 1.49 (unified)

Sync with HEAD.

Revision 1.52.4.3 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:20 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.52.4.2: +30 -6 lines
Diff to previous 1.52.4.2 (unified) to branchpoint 1.52 (unified) to selected 1.49 (unified)

sync with head

Revision 1.59 / (download) - annotate - [select for diffs], Tue May 19 20:25:41 2009 UTC (14 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Changes since 1.58: +30 -6 lines
Diff to previous 1.58 (unified) to selected 1.49 (unified)

Add a detachment hook.  Detach md(4) at shutdown.

Revision 1.52.4.2 / (download) - annotate - [select for diffs], Sat May 16 10:41:18 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.52.4.1: +13 -2 lines
Diff to previous 1.52.4.1 (unified) to branchpoint 1.52 (unified) to selected 1.49 (unified)

sync with head

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:19:05 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.57: +13 -2 lines
Diff to previous 1.57 (unified) to selected 1.49 (unified)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.56.6.1 / (download) - annotate - [select for diffs], Mon May 11 20:07:08 2009 UTC (14 years, 11 months ago) by bouyer
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, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.56: +13 -2 lines
Diff to previous 1.56 (unified) next main 1.57 (unified) to selected 1.49 (unified)

Pull up following revision(s) (requested by manu in ticket #749):
	sys/dev/md.c: revision 1.58
TFTPROOT loads the RAMdisk through TFTP at boot time. It needs the
network to be functionnal, and therefore must be called after
config_finalize(). Unfortunately, config_finalize() attaches md0
through mdattach(), and when tftproot_getfile() attempts to attach it
later by calling mdattach() again, it gets a failure.
This change checks for the RAMdisk size in mdattach(). If it is zero, then
the RAMdisk has not been loaded yet, and nothing is done. It will be
attached later when tftproot_getfile() will call mdattach()

Revision 1.58 / (download) - annotate - [select for diffs], Mon May 4 16:20:41 2009 UTC (14 years, 11 months ago) by manu
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, jym-xensuspend-base
Changes since 1.57: +13 -2 lines
Diff to previous 1.57 (unified) to selected 1.49 (unified)

TFTPROOT loads the RAMdisk through TFTP at boot time. It needs the
network to be functionnal, and therefore must be called after
config_finalize(). Unfortunately, config_finalize() attaches md0
through mdattach(), and when tftproot_getfile() attempts to attach it
later by calling mdattach() again, it gets a failure.

This change checks for the RAMdisk size in mdattach(). If it is zero, then
the RAMdisk has not been loaded yet, and nothing is done. It will be
attached later when tftproot_getfile() will call mdattach()

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:12:33 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.52: +30 -66 lines
Diff to previous 1.52 (unified) to selected 1.49 (unified)

sync with head.

Revision 1.56.4.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:17:51 2009 UTC (15 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (unified) next main 1.57 (unified) to selected 1.49 (unified)

Sync with HEAD.

Revision 1.51.18.5 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:52 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.51.18.4: +4 -4 lines
Diff to previous 1.51.18.4 (unified) to branchpoint 1.51 (unified) next main 1.52 (unified) to selected 1.49 (unified)

Sync with HEAD.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Jan 13 13:35:52 2009 UTC (15 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (unified) to selected 1.49 (unified)

g/c BUFQ_FOO() macros and use bufq_foo() directly.

Revision 1.51.18.4 / (download) - annotate - [select for diffs], Wed Jul 2 19:08:19 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.51.18.3: +12 -12 lines
Diff to previous 1.51.18.3 (unified) to branchpoint 1.51 (unified) to selected 1.49 (unified)

Sync with HEAD.

Revision 1.51.18.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:04 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.51.18.2: +26 -62 lines
Diff to previous 1.51.18.2 (unified) to branchpoint 1.51 (unified) to selected 1.49 (unified)

Sync with HEAD.

Revision 1.52.6.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:30:58 2008 UTC (15 years, 10 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.52: +28 -64 lines
Diff to previous 1.52 (unified) next main 1.53 (unified) to selected 1.49 (unified)

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

Revision 1.52.8.1 / (download) - annotate - [select for diffs], Wed Jun 18 16:33:03 2008 UTC (15 years, 10 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.52: +28 -64 lines
Diff to previous 1.52 (unified) next main 1.53 (unified) to selected 1.49 (unified)

Sync with head.

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Tue Jun 17 09:14:24 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.52: +28 -64 lines
Diff to previous 1.52 (unified) next main 1.53 (unified) to selected 1.49 (unified)

sync with head.

Revision 1.56 / (download) - annotate - [select for diffs], Mon Jun 16 10:27:47 2008 UTC (15 years, 10 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pf42-base4, 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, netbsd-5-base, 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, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, matt-nb5-mips64
Changes since 1.55: +2 -4 lines
Diff to previous 1.55 (unified) to selected 1.49 (unified)

more cleanup: the sc_dev backpointer is unused, remove it

Revision 1.55 / (download) - annotate - [select for diffs], Fri Jun 13 20:05:06 2008 UTC (15 years, 10 months ago) by cegger
Branch: MAIN
Changes since 1.54: +5 -2 lines
Diff to previous 1.54 (unified) to selected 1.49 (unified)

register NULL pmf handlers. md(4) is supposed to not loose / change when resuming from S3.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Jun 13 19:55:26 2008 UTC (15 years, 10 months ago) by cegger
Branch: MAIN
Changes since 1.53: +17 -29 lines
Diff to previous 1.53 (unified) to selected 1.49 (unified)

device_t/softc split
while here, remove unused variables and do some other cleanups
with feedback from cube

Revision 1.53 / (download) - annotate - [select for diffs], Wed Jun 11 10:38:44 2008 UTC (15 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.52: +20 -45 lines
Diff to previous 1.52 (unified) to selected 1.49 (unified)

Replace the weird method to create instances by config_attach_pseudo()
as everyone else does, and remove the private table of instances which
is replaced by the table in the cfdriver.
This could get more cleanup, and I didn't split device/softc yet.

Revision 1.51.18.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:11 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.51.18.1: +3 -3 lines
Diff to previous 1.51.18.1 (unified) to branchpoint 1.51 (unified) to selected 1.49 (unified)

Sync with HEAD.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Apr 9 05:47:19 2008 UTC (16 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, hpcarm-cleanup-nbase
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (unified) to selected 1.49 (unified)

use aprint_*_dev and device_xname

Revision 1.51.18.1 / (download) - annotate - [select for diffs], Sat Apr 5 23:33:20 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.51: +17 -2 lines
Diff to previous 1.51 (unified) to selected 1.49 (unified)

- add "file-system DEVFS" and "pseudo-device devfsctl" to conf/std seeing
  as these are always needed.

- convert many, many drivers over to the New Devfs World Order. For a
  list of device drivers yet to be converted see,
  http://www.netbsd.org/~mjf/devfs-todo.html.

- add a new device_unregister_all(device_t) function to remove all device
  names associated with a device_t, which saves us having to construct
  device names when the driver is detached.

- add a DEV_AUDIO type for devices.

Revision 1.50.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:25:28 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.50: +3 -4 lines
Diff to previous 1.50 (unified) next main 1.51 (unified) to selected 1.49 (unified)

sync with HEAD

Revision 1.41.2.4 / (download) - annotate - [select for diffs], Sat Oct 27 11:29:58 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41.2.3: +3 -4 lines
Diff to previous 1.41.2.3 (unified) to branchpoint 1.41 (unified) next main 1.42 (unified) to selected 1.49 (unified)

sync with head.

Revision 1.50.4.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:44:10 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.50: +3 -4 lines
Diff to previous 1.50 (unified) next main 1.51 (unified) to selected 1.49 (unified)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.50.8.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:01 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.50: +3 -4 lines
Diff to previous 1.50 (unified) next main 1.51 (unified) to selected 1.49 (unified)

sync with head.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Oct 8 16:41:10 2007 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-lazymbuf-base15, yamt-lazymbuf-base14, 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-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, mjf-devfs, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.50: +3 -4 lines
Diff to previous 1.50 (unified) to selected 1.49 (unified)

Merge disk init changes from the vmlocking branch. These seperate init /
destroy of 'struct disk' from attach / detach.

Revision 1.41.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:33:13 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41.2.2: +13 -16 lines
Diff to previous 1.41.2.2 (unified) to branchpoint 1.41 (unified) to selected 1.49 (unified)

sync with head.

Revision 1.48.2.3 / (download) - annotate - [select for diffs], Mon Aug 20 18:16:10 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.48.2.2: +5 -6 lines
Diff to previous 1.48.2.2 (unified) to branchpoint 1.48 (unified) next main 1.49 (unified)

- Alter disk attach/detach to fix a panic when closing a vnd device.
- Sync with HEAD.

Revision 1.48.2.2 / (download) - annotate - [select for diffs], Sun Aug 19 19:24:21 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.48.2.1: +9 -7 lines
Diff to previous 1.48.2.1 (unified) to branchpoint 1.48 (unified) to selected 1.49 (unified)

- Back out the biodone() changes.
- Eliminate B_ERROR (from HEAD).

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:48:13 2007 UTC (16 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.49: +2 -5 lines
Diff to previous 1.49 (unified) next main 1.50 (unified)

Sync with HEAD.

Revision 1.50.10.2 / (download) - annotate - [select for diffs], Sun Jul 29 12:50:19 2007 UTC (16 years, 8 months ago) by ad
Branch: matt-mips64
Changes since 1.50.10.1: +513 -0 lines
Diff to previous 1.50.10.1 (unified) to branchpoint 1.50 (unified) next main 1.51 (unified) to selected 1.49 (unified)

It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.

Revision 1.50.10.1, Sun Jul 29 12:50:18 2007 UTC (16 years, 8 months ago) by ad
Branch: matt-mips64
Changes since 1.50: +0 -513 lines
FILE REMOVED

file md.c was added on branch matt-mips64 on 2007-07-29 12:50:19 +0000

Revision 1.50 / (download) - annotate - [select for diffs], Sun Jul 29 12:50:18 2007 UTC (16 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.49: +2 -5 lines
Diff to previous 1.49 (unified)

It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.

Revision 1.49 / (download) - annotate - [selected], Sun Jul 15 08:40:22 2007 UTC (16 years, 9 months ago) by dsl
Branch: MAIN
CVS Tags: nick-csl-alignment-base
Branch point for: nick-csl-alignment
Changes since 1.48: +4 -4 lines
Diff to previous 1.48 (unified)

Default MEMORY_DISK_SERVER to 1 instead of using 'undefined' to mean 1.

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Sun May 13 17:36:21 2007 UTC (16 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.48: +7 -14 lines
Diff to previous 1.48 (unified) to selected 1.49 (unified)

- Pass the error number and residual count to biodone(), and let it handle
  setting error indicators. Prepare to eliminate B_ERROR.
- Add a flag argument to brelse() to be set into the buf's flags, instead
  of doing it directly. Typically used to set B_INVAL.
- Add a "struct cpu_info *" argument to kthread_create(), to be used to
  create bound threads. Change "bool mpsafe" to "int flags".
- Allow exit of LWPs in the IDL state when (l != curlwp).
- More locking fixes & conversion to the new API.

Revision 1.47.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:53:04 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.47: +11 -11 lines
Diff to previous 1.47 (unified) next main 1.48 (unified) to selected 1.49 (unified)

Sync with HEAD.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Mar 4 06:01:42 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, mjf-ufs-trans-base, mjf-ufs-trans
Branch point for: vmlocking
Changes since 1.47: +11 -11 lines
Diff to previous 1.47 (unified) to selected 1.49 (unified)

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

Revision 1.41.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:47:50 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41.2.1: +9 -6 lines
Diff to previous 1.41.2.1 (unified) to branchpoint 1.41 (unified) to selected 1.49 (unified)

sync with head.

Revision 1.45.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:16:53 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.45.4.1: +11 -11 lines
Diff to previous 1.45.4.1 (unified) to branchpoint 1.45 (unified) next main 1.46 (unified) to selected 1.49 (unified)

sync with head.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:03 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.45: +8 -5 lines
Diff to previous 1.45 (unified) next main 1.46 (unified) to selected 1.49 (unified)

Sync with head.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:45 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, 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, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.46: +11 -11 lines
Diff to previous 1.46 (unified) to selected 1.49 (unified)

__unused removal on arguments; approved by core.

Revision 1.45.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:05:28 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.45: +13 -10 lines
Diff to previous 1.45 (unified) to selected 1.49 (unified)

sync with head

Revision 1.46 / (download) - annotate - [select for diffs], Thu Oct 12 01:30:51 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.45: +13 -10 lines
Diff to previous 1.45 (unified) to selected 1.49 (unified)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.43.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:49:09 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.43: +4 -4 lines
Diff to previous 1.43 (unified) next main 1.44 (unified) to selected 1.49 (unified)

sync with head

Revision 1.43.8.2 / (download) - annotate - [select for diffs], Sun Sep 3 15:23:55 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.43.8.1: +3 -3 lines
Diff to previous 1.43.8.1 (unified) to branchpoint 1.43 (unified) next main 1.44 (unified) to selected 1.49 (unified)

sync with head.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Sep 2 07:02:33 2006 UTC (17 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (unified) to selected 1.49 (unified)

add missing initializer

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:02:12 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41: +16 -16 lines
Diff to previous 1.41 (unified) to selected 1.49 (unified)

sync with head.

Revision 1.43.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:38:45 2006 UTC (18 years ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (unified) next main 1.44 (unified) to selected 1.49 (unified)

Sync with head.

Revision 1.43.10.1 / (download) - annotate - [select for diffs], Wed Apr 19 03:24:24 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (unified) next main 1.44 (unified) to selected 1.49 (unified)

sync with head.

Revision 1.43.8.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:06:43 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (unified) to selected 1.49 (unified)

sync with head.

Revision 1.43.12.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:17 2006 UTC (18 years ago) by tron
Branch: peter-altq
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (unified) next main 1.44 (unified) to selected 1.49 (unified)

Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Mar 28 17:38:29 2006 UTC (18 years ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (unified) to selected 1.49 (unified)

Use device_unit().

Revision 1.43 / (download) - annotate - [select for diffs], Sun Dec 11 12:20:53 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.42: +11 -11 lines
Diff to previous 1.42 (unified) to selected 1.49 (unified)

merge ktrace-lwp.

Revision 1.36.2.9 / (download) - annotate - [select for diffs], Thu Nov 10 14:03:00 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.8: +6 -6 lines
Diff to previous 1.36.2.8 (unified) to branchpoint 1.36 (unified) next main 1.37 (unified) to selected 1.49 (unified)

Sync with HEAD. Here we go again...

Revision 1.42 / (download) - annotate - [select for diffs], Sat Oct 15 17:29:11 2005 UTC (18 years, 6 months ago) by yamt
Branch: 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
Changes since 1.41: +6 -6 lines
Diff to previous 1.41 (unified) to selected 1.49 (unified)

- change the way to specify a bufq strategy.  (by string rather than by number)
- rather than embedding bufq_state in driver softc,
  have a pointer to the former.
- move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c.
- rename method to strategy for consistency.
- move some definitions which don't need to be exposed to the rest of kernel
  from sys/bufq.h to sys/bufq_impl.h.
  (is it better to move it to kern/ or somewhere?)
- fix some obvious breakage in dev/qbus/ts.c.  (not tested)

Revision 1.39.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:28:44 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.39: +5 -5 lines
Diff to previous 1.39 (unified) next main 1.40 (unified) to selected 1.49 (unified)

sync with -current

Revision 1.36.2.8 / (download) - annotate - [select for diffs], Fri Apr 1 14:29:37 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.7: +3 -3 lines
Diff to previous 1.36.2.7 (unified) to branchpoint 1.36 (unified) to selected 1.49 (unified)

Sync with HEAD.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Apr 1 11:59:37 2005 UTC (19 years ago) by yamt
Branch: MAIN
CVS Tags: kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (unified) to selected 1.49 (unified)

merge yamt-km branch.
- don't use managed mappings/backing objects for wired memory allocations.
  save some resources like pv_entry.  also fix (most of) PR/27030.
- simplify kernel memory management API.
- simplify pmap bootstrap of some ports.
- some related cleanups.

Revision 1.39.6.2 / (download) - annotate - [select for diffs], Sat Mar 19 08:33:53 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.39.6.1: +4 -4 lines
Diff to previous 1.39.6.1 (unified) to branchpoint 1.39 (unified) next main 1.40 (unified) to selected 1.49 (unified)

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

Revision 1.36.2.7 / (download) - annotate - [select for diffs], Fri Mar 4 16:40:53 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.6: +4 -4 lines
Diff to previous 1.36.2.6 (unified) to branchpoint 1.36 (unified) to selected 1.49 (unified)

Sync with HEAD.

Hi Perry!

Revision 1.40 / (download) - annotate - [select for diffs], Sun Feb 27 00:26:58 2005 UTC (19 years, 1 month ago) by perry
Branch: 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
Changes since 1.39: +4 -4 lines
Diff to previous 1.39 (unified) to selected 1.49 (unified)

nuke trailing whitespace

Revision 1.39.6.1 / (download) - annotate - [select for diffs], Tue Jan 25 13:03:14 2005 UTC (19 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (unified) to selected 1.49 (unified)

convert to new apis.

Revision 1.36.2.6 / (download) - annotate - [select for diffs], Tue Nov 2 07:51:19 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.5: +3 -2 lines
Diff to previous 1.36.2.5 (unified) to branchpoint 1.36 (unified) to selected 1.49 (unified)

Sync with HEAD.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Oct 28 07:07:39 2004 UTC (19 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.38: +3 -2 lines
Diff to previous 1.38 (unified) to selected 1.49 (unified)

move buffer queue related stuffs from buf.h to their own header, bufq.h.

Revision 1.36.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:26:25 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.4: +11 -11 lines
Diff to previous 1.36.2.4 (unified) to branchpoint 1.36 (unified) to selected 1.49 (unified)

Fix the sync with head I botched.

Revision 1.36.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:44:28 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.3: +11 -11 lines
Diff to previous 1.36.2.3 (unified) to branchpoint 1.36 (unified) to selected 1.49 (unified)

Sync with HEAD.

Revision 1.36.2.3 / (download) - annotate - [select for diffs], Fri Sep 3 12:45:17 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.2: +39 -64 lines
Diff to previous 1.36.2.2 (unified) to branchpoint 1.36 (unified) to selected 1.49 (unified)

Sync with HEAD

Revision 1.38 / (download) - annotate - [select for diffs], Mon Aug 30 00:34:42 2004 UTC (19 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.37: +37 -64 lines
Diff to previous 1.37 (unified) to selected 1.49 (unified)

Use ANSI function decls, sprinkle static.

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:44:54 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.1: +4 -3 lines
Diff to previous 1.36.2.1 (unified) to branchpoint 1.36 (unified) to selected 1.49 (unified)

Sync with HEAD

Revision 1.37 / (download) - annotate - [select for diffs], Wed Apr 21 18:40:37 2004 UTC (20 years ago) by itojun
Branch: MAIN
Changes since 1.36: +4 -3 lines
Diff to previous 1.36 (unified) to selected 1.49 (unified)

kill sprintf, use snprintf

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:00 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.36: +12 -14 lines
Diff to previous 1.36 (unified) to selected 1.49 (unified)

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.36 / (download) - annotate - [select for diffs], Sun Jun 29 22:30:00 2003 UTC (20 years, 9 months ago) by fvdl
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
Branch point for: ktrace-lwp
Changes since 1.35: +12 -10 lines
Diff to previous 1.35 (unified) to selected 1.49 (unified)

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

Revision 1.35 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:31 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.34: +12 -14 lines
Diff to previous 1.34 (unified) to selected 1.49 (unified)

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.34 / (download) - annotate - [select for diffs], Tue May 13 02:56:13 2003 UTC (20 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (unified) to selected 1.49 (unified)

Use aprint_error() where appropriate.

Revision 1.25.2.7 / (download) - annotate - [select for diffs], Thu Dec 19 00:48:02 2002 UTC (21 years, 4 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.25.2.6: +5 -5 lines
Diff to previous 1.25.2.6 (unified) to branchpoint 1.25 (unified) next main 1.26 (unified) to selected 1.49 (unified)

Sync with HEAD.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Dec 11 16:24:38 2002 UTC (21 years, 4 months ago) by atatat
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.32: +5 -5 lines
Diff to previous 1.32 (unified) to selected 1.49 (unified)

Add /* MEMORY_DISK_SERVER */ comments to the #endifs to match the #ifdefs.

Revision 1.25.2.6 / (download) - annotate - [select for diffs], Mon Nov 11 22:08:47 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.25.2.5: +1 -1 lines
Diff to previous 1.25.2.5 (unified) to branchpoint 1.25 (unified) to selected 1.49 (unified)

Catch up to -current

Revision 1.32 / (download) - annotate - [select for diffs], Wed Oct 23 09:13:03 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (unified) to selected 1.49 (unified)

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.26.2.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:38:20 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.26.2.3: +19 -21 lines
Diff to previous 1.26.2.3 (unified) to branchpoint 1.26 (unified) next main 1.27 (unified) to selected 1.49 (unified)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.25.2.5 / (download) - annotate - [select for diffs], Tue Sep 17 21:19:21 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.25.2.4: +17 -19 lines
Diff to previous 1.25.2.4 (unified) to branchpoint 1.25 (unified) to selected 1.49 (unified)

Catch up to -current.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Sep 6 13:18:43 2002 UTC (21 years, 7 months ago) by gehenna
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base
Changes since 1.30: +19 -21 lines
Diff to previous 1.30 (unified) to selected 1.49 (unified)

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.26.2.3 / (download) - annotate - [select for diffs], Fri Sep 6 08:43:47 2002 UTC (21 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.26.2.2: +8 -14 lines
Diff to previous 1.26.2.2 (unified) to branchpoint 1.26 (unified) to selected 1.49 (unified)

sync kqueue branch with HEAD

Revision 1.28.8.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:22:19 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.28.8.1: +8 -14 lines
Diff to previous 1.28.8.1 (unified) to branchpoint 1.28 (unified) next main 1.29 (unified) to selected 1.49 (unified)

catch up with -current.

Revision 1.25.2.4 / (download) - annotate - [select for diffs], Thu Aug 1 02:44:34 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.25.2.3: +8 -14 lines
Diff to previous 1.25.2.3 (unified) to branchpoint 1.25 (unified) to selected 1.49 (unified)

Catch up to -current.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Jul 21 15:32:18 2002 UTC (21 years, 9 months ago) by hannken
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (unified) to selected 1.49 (unified)

Rename bufq_init() to bufq_alloc().
Add bufq_free() to remove a buffer queue.
Avoid MALLOC while holding a spinlock.

From Chuck Silvers.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Jul 20 11:28:08 2002 UTC (21 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.28: +8 -14 lines
Diff to previous 1.28 (unified) to selected 1.49 (unified)

Convert to new device buffer queue interface.

Revision 1.28.8.1 / (download) - annotate - [select for diffs], Thu May 16 04:47:32 2002 UTC (21 years, 11 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.28: +19 -21 lines
Diff to previous 1.28 (unified) to selected 1.49 (unified)

Add the block/character device switches.

Revision 1.25.2.3 / (download) - annotate - [select for diffs], Thu Feb 28 04:13:10 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.25.2.2: +3 -4 lines
Diff to previous 1.25.2.2 (unified) to branchpoint 1.25 (unified) to selected 1.49 (unified)

Catch up to -current.

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Mon Feb 11 20:09:37 2002 UTC (22 years, 2 months ago) by jdolecek
Branch: kqueue
Changes since 1.26.2.1: +3 -4 lines
Diff to previous 1.26.2.1 (unified) to branchpoint 1.26 (unified) to selected 1.49 (unified)

Sync w/ -current.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jan 13 19:28:07 2002 UTC (22 years, 3 months ago) by tsutsui
Branch: 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
Changes since 1.27: +3 -4 lines
Diff to previous 1.27 (unified) to selected 1.49 (unified)

Call malloc(9) with M_ZERO flag instead of memset() after malloc().

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:52:47 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.26: +4 -1 lines
Diff to previous 1.26 (unified) to selected 1.49 (unified)

Sync kqueue branch with -current.

Revision 1.25.2.2 / (download) - annotate - [select for diffs], Wed Nov 14 19:13:41 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.25.2.1: +4 -1 lines
Diff to previous 1.25.2.1 (unified) to branchpoint 1.25 (unified) to selected 1.49 (unified)

Catch up to -current.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Nov 13 05:32:50 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.26: +4 -1 lines
Diff to previous 1.26 (unified) to selected 1.49 (unified)

add RCSIDs

Revision 1.26.4.3 / (download) - annotate - [select for diffs], Mon Oct 1 12:44:11 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.26.4.2: +2 -2 lines
Diff to previous 1.26.4.2 (unified) to branchpoint 1.26 (unified) next main 1.27 (unified) to selected 1.49 (unified)

Catch up with -current.

Revision 1.26.4.2 / (download) - annotate - [select for diffs], Wed Sep 26 15:28:09 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.26.4.1: +18 -9 lines
Diff to previous 1.26.4.1 (unified) to branchpoint 1.26 (unified) to selected 1.49 (unified)

* 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.26.4.1 / (download) - annotate - [select for diffs], Fri Sep 7 04:45:23 2001 UTC (22 years, 7 months ago) by thorpej
Branch: thorpej-devvp
Changes since 1.26: +25 -48 lines
Diff to previous 1.26 (unified) to selected 1.49 (unified)

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.25.2.1 / (download) - annotate - [select for diffs], Fri Aug 24 00:09:03 2001 UTC (22 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (unified) to selected 1.49 (unified)

Catch up with -current.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jul 7 17:04:02 2001 UTC (22 years, 9 months ago) by thorpej
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
Branch point for: thorpej-devvp, kqueue
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (unified) to selected 1.49 (unified)

bcopy -> memcpy
bzero -> memset

Revision 1.20.8.2 / (download) - annotate - [select for diffs], Sun Feb 11 19:15:16 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.20.8.1: +2 -2 lines
Diff to previous 1.20.8.1 (unified) to branchpoint 1.20 (unified) next main 1.21 (unified) to selected 1.49 (unified)

Sync with HEAD.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Feb 8 13:11:31 2001 UTC (23 years, 2 months ago) by tsutsui
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (unified) to selected 1.49 (unified)

Fix md_root.c path in comment.

Revision 1.20.8.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:39:46 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.20: +89 -80 lines
Diff to previous 1.20 (unified) to selected 1.49 (unified)

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.24 / (download) - annotate - [select for diffs], Tue Jun 27 17:58:21 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.23: +1 -3 lines
Diff to previous 1.23 (unified) to selected 1.49 (unified)

remove include of <vm/vm.h>

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jun 26 14:21:10 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (unified) to selected 1.49 (unified)

remove/move more mach vm header files:

	<vm/pglist.h> -> <uvm/uvm_pglist.h>
	<vm/vm_inherit.h> -> <uvm/uvm_inherit.h>
	<vm/vm_kern.h> -> into <uvm/uvm_extern.h>
	<vm/vm_object.h> -> nothing
	<vm/vm_pager.h> -> into <uvm/uvm_pager.h>

also includes a bunch of <vm/vm_page.h> include removals (due to redudancy
with <vm/vm.h>), and a scattering of other similar headers.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jan 21 23:39:57 2000 UTC (24 years, 3 months ago) by thorpej
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, chs-ubc2-newbase
Changes since 1.21: +8 -9 lines
Diff to previous 1.21 (unified) to selected 1.49 (unified)

Update for sys/buf.h/disksort_*() changes.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jan 21 12:14:53 2000 UTC (24 years, 3 months ago) by tsutsui
Branch: MAIN
Changes since 1.20: +81 -69 lines
Diff to previous 1.20 (unified) to selected 1.49 (unified)

 - use the raw partition for ioctl; `control device' is gone.
 - remove `sc_flags' member from md_softc
 - add check code whether the md device is configured in mdread/mdwrite

Revision 1.20.14.1 / (download) - annotate - [select for diffs], Tue Dec 21 23:19:52 1999 UTC (24 years, 4 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.20: +14 -6 lines
Diff to previous 1.20 (unified) next main 1.21 (unified) to selected 1.49 (unified)

Initial commit of recent changes to make DEV_BSIZE go away.

Runs on i386, needs work on other arch's. Main kernel routines should be
fine, but a number of the stand programs need help.

cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512
byte block devices. vnd, raidframe, and lfs need work.

Non 2**n block support is automatic for LKM's and conditional for kernels
on "options NON_PO2_BLOCKS".

Revision 1.20 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:20 1999 UTC (25 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base, chs-ubc2
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.19: +1 -6 lines
Diff to previous 1.19 (unified) to selected 1.49 (unified)

completely remove Mach VM support.  all that is left is the all the
header files as UVM still uses (most of) these.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Feb 7 09:34:59 1999 UTC (25 years, 2 months ago) by jonathan
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (unified) to selected 1.49 (unified)

defopt MEMORY_DISK_{HOOKS,SERVER,IS_ROOT}.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Sep 1 06:13:33 1998 UTC (25 years, 7 months ago) by enami
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.17: +1 -15 lines
Diff to previous 1.17 (unified) to selected 1.49 (unified)

Make this file compile again by removing no longer used `struct
cfdriver md_cd' and related code.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Aug 13 02:10:50 1998 UTC (25 years, 8 months ago) by eeh
Branch: MAIN
Changes since 1.16: +6 -6 lines
Diff to previous 1.16 (unified) to selected 1.49 (unified)

Merge paddr_t changes into the main branch.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Thu Jul 30 14:03:59 1998 UTC (25 years, 8 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.16: +6 -6 lines
Diff to previous 1.16 (unified) next main 1.17 (unified) to selected 1.49 (unified)

Split vm_offset_t and vm_size_t into paddr_t, psize_t, vaddr_t, and vsize_t.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Feb 10 14:09:18 1998 UTC (26 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.15: +3 -1 lines
Diff to previous 1.15 (unified) to selected 1.49 (unified)

- add defopt's for UVM, UVMHIST and PMAP_NEW.
- remove unnecessary UVMHIST_DECL's.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Feb 5 07:59:37 1998 UTC (26 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.14: +5 -1 lines
Diff to previous 1.14 (unified) to selected 1.49 (unified)

initial import of the new virtual memory system, UVM, into -current.

UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some
minor portions derived from the old Mach code.  i provided some help
getting swap and paging working, and other bug fixes/ideas.  chuck
silvers <chuq@chuq.com> also provided some other fixes.

this is the rest of the MI portion changes.

this will be KNF'd shortly.  :-)

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Sat Aug 23 07:12:48 1997 UTC (26 years, 8 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.13: +7 -6 lines
Diff to previous 1.13 (unified) next main 1.14 (unified) to selected 1.49 (unified)

Update marc-pcmcia branch from trunk.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Aug 1 19:44:11 1997 UTC (26 years, 8 months ago) by leo
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, 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.13: +7 -6 lines
Diff to previous 1.13 (unified) to selected 1.49 (unified)

Use DISKUNIT macro to encode md's unit in the minor number.

Revision 1.13 / (download) - annotate - [select for diffs], Fri May 23 23:44:34 1997 UTC (26 years, 11 months ago) by jeremy
Branch: MAIN
CVS Tags: marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (unified) to selected 1.49 (unified)

Comment reference to ramdisk.h -> md.h

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jan 11 06:26:41 1997 UTC (27 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (unified) to selected 1.49 (unified)

It's not safe to sleep in mdattach(), so don't pass WAITOK to malloc().

Revision 1.11 / (download) - annotate - [select for diffs], Sat Dec 28 23:09:26 1996 UTC (27 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.10: +132 -134 lines
Diff to previous 1.10 (unified) to selected 1.49 (unified)

Rename this driver `md'.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Oct 13 01:37:07 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (unified) to selected 1.49 (unified)

backout kprintf changes

Revision 1.9 / (download) - annotate - [select for diffs], Thu Oct 10 22:25:08 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (unified) to selected 1.49 (unified)

printf -> kprintf, sprintf -> ksprintf

Revision 1.8 / (download) - annotate - [select for diffs], Fri Apr 12 08:30:09 1996 UTC (28 years ago) by leo
Branch: MAIN
Changes since 1.7: +24 -7 lines
Diff to previous 1.7 (unified) to selected 1.49 (unified)

Add some prototypes.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Mar 22 23:02:02 1996 UTC (28 years, 1 month ago) by gwr
Branch: MAIN
Changes since 1.6: +61 -38 lines
Diff to previous 1.6 (unified) to selected 1.49 (unified)

The ramdisk is now a pseudo-device.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Mar 17 00:43:52 1996 UTC (28 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.5: +15 -11 lines
Diff to previous 1.5 (unified) to selected 1.49 (unified)

New device attachment scheme:

	- split softc size and match/attach out from cfdriver into
	  a new struct cfattach.

	- new "attach" directive for files.*.  May specify the name of
	  the cfattach structure, so that devices may be easily attached
	  to parents with different autoconfiguration semantics.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Mar 7 10:26:29 1996 UTC (28 years, 1 month ago) by leo
Branch: MAIN
Changes since 1.4: +9 -1 lines
Diff to previous 1.4 (unified) to selected 1.49 (unified)

Allow for a machine dependent match function - rd_match_hook()

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jan 7 22:03:31 1996 UTC (28 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.3: +15 -3 lines
Diff to previous 1.3 (unified) to selected 1.49 (unified)

New generic disk framework.  Highlights:

	- New metrics handling.  Metrics are now kept in the new
	  `struct disk'.  Busy time is now stored as a timeval, and
	  transfer count in bytes.

	- Storage for disklabels is now dynamically allocated, so that
	  the size of the disk structure is not machine-dependent.

	- Several new functions for attaching and detaching disks, and
	  handling metrics calculation.

Old-style instrumentation is still supported in drivers that did it before.
However, old-style instrumentation is being deprecated, and will go away
once the userland utilities are updated for the new framework.

For usage and architectural details, see the forthcoming disk(9) manual
page.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Fri Nov 17 23:34:25 1995 UTC (28 years, 5 months ago) by gwr
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (unified) next main 1.2 (unified) to selected 1.49 (unified)

sync with head

Revision 1.3 / (download) - annotate - [select for diffs], Fri Nov 17 23:33:34 1995 UTC (28 years, 5 months ago) by gwr
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (unified) to selected 1.49 (unified)

get size of softc right

Revision 1.2 / (download) - annotate - [select for diffs], Thu Oct 26 15:38:45 1995 UTC (28 years, 6 months ago) by gwr
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (unified) to selected 1.49 (unified)

Fix a comment

Revision 1.1 / (download) - annotate - [select for diffs], Sun Oct 8 23:30:57 1995 UTC (28 years, 6 months ago) by gwr
Branch: MAIN
Diff to selected 1.49 (unified)

Machine-independent RAM-disk driver.

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>