The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.189 / (download) - annotate - [select for diffs], Mon Mar 28 12:48:35 2022 UTC (10 months ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.188: +3 -3 lines
Diff to previous 1.188 (colored)

sys/dev/ccd.c: Restore historic RCS id.

This got munged accidentally by `git cvsexportcommit -k' -- taking
that option out of my commitbomb script!

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

driver(9): devsw_detach never fails.  Make it return void.

Prune a whole lotta dead branches as a result of this.  (Some logic
calling this is also wrong for other reasons; devsw_detach is final
-- you should never have any reason to decide to roll it back.  To be
cleaned up in subsequent commits...)

XXX kernel ABI change to devsw_detach signature requires bump

Revision 1.187 / (download) - annotate - [select for diffs], Sat Mar 12 17:27:50 2022 UTC (10 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.186: +3 -3 lines
Diff to previous 1.186 (colored)

ccd(4): Only pathbuf_destroy if pathbuf_copyin succeeded.

Reported-by: syzbot+a46aadc788a80afc8742@syzkaller.appspotmail.com

Revision 1.186 / (download) - annotate - [select for diffs], Fri Feb 11 23:20:09 2022 UTC (11 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.185: +3 -3 lines
Diff to previous 1.185 (colored)

ccd(4): Fix typo in comment.

Revision 1.179.4.1 / (download) - annotate - [select for diffs], Sun Oct 11 12:34:29 2020 UTC (2 years, 3 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.179: +122 -100 lines
Diff to previous 1.179 (colored) next main 1.180 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #1110):

	sys/dev/dkwedge/dk.c: revision 1.102
	sys/dev/ccd.c: revision 1.185
	sbin/ccdconfig/ccdconfig.c: revision 1.58

Use raw device for configuring units. This is necessary as
having a block device opened prevents autodiscovery of wedges.

Fix ioctl locking. Add dkdriver.

Check dkdriver before calling a driver function.

Revision 1.185 / (download) - annotate - [select for diffs], Tue Oct 6 18:45:23 2020 UTC (2 years, 3 months ago) by mlelstv
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.184: +122 -100 lines
Diff to previous 1.184 (colored)

Fix ioctl locking. Add dkdriver.

Revision 1.184 / (download) - annotate - [select for diffs], Thu Jun 11 19:20:46 2020 UTC (2 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.183: +3 -3 lines
Diff to previous 1.183 (colored)

uvm_availmem(): give it a boolean argument to specify whether a recent
cached value will do, or if the very latest total must be fetched.  It can
be called thousands of times a second and fetching the totals impacts not
only the calling LWP but other CPUs doing unrelated activity in the VM
system.

Revision 1.176.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:18 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.176.2.2: +0 -6 lines
Diff to previous 1.176.2.2 (colored) to branchpoint 1.176 (colored) next main 1.177 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.176.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:02 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.176.2.1: +4 -4 lines
Diff to previous 1.176.2.1 (colored) to branchpoint 1.176 (colored)

Merge changes from current as of 20200406

Revision 1.183 / (download) - annotate - [select for diffs], Tue Dec 31 13:07:13 2019 UTC (3 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.182: +3 -3 lines
Diff to previous 1.182 (colored)

Rename uvm_free() -> uvm_availmem().

Revision 1.182 / (download) - annotate - [select for diffs], Sat Dec 21 13:00:24 2019 UTC (3 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.181: +3 -3 lines
Diff to previous 1.181 (colored)

uvmexp.free -> uvm_free()

Revision 1.181 / (download) - annotate - [select for diffs], Sun Dec 8 12:14:40 2019 UTC (3 years, 1 month ago) by mlelstv
Branch: MAIN
Changes since 1.180: +3 -3 lines
Diff to previous 1.180 (colored)

Switch to vn_bdev_open* functions.

Revision 1.180 / (download) - annotate - [select for diffs], Wed Aug 7 00:38:01 2019 UTC (3 years, 5 months ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.179: +2 -8 lines
Diff to previous 1.179 (colored)

Many years ago someone created a new __link_set_sysctl_funcs to hold
the list of routines that need to be called for setting up sysctl
variables.  This worked great for all code included in the kernel
itself, but didn't deal with modules that want to create their own
sysctl data.  So, we ended up with a lot of #ifdef _MODULE blocks
so modules could explicitly call their setup functions when loaded
as non-built-in modules.

So today, we complete the task that was started so many years ago.

When modules are loaded, after we've called xxx_modcmd(INIT...) we
check if the module contains its own __link_set_sysctl_funcs, and
if so we call the functions listed.  We add a struct sysctllog member
to the struct module so we can call sysctl_teardown() when the module
gets unloaded.  (The sequence of events ensures that the sysctl stuff
doesn't get created until the rest of the module's init code does any
required memory allocation.)

So, no more need to explicitly call the sysctl setup routines when
built as a loadable module.

Revision 1.176.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:04 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.176: +12 -5 lines
Diff to previous 1.176 (colored)

Sync with HEAD

Revision 1.172.2.1 / (download) - annotate - [select for diffs], Fri Apr 5 08:40:19 2019 UTC (3 years, 9 months ago) by msaitoh
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.172: +3 -2 lines
Diff to previous 1.172 (colored) next main 1.173 (colored)

Pull up following revision(s) (requested by martin in ticket #1223):
	sys/sys/dkio.h: revision 1.25
	sys/kern/subr_disk.c: revision 1.123
	sys/dev/dksubr.c: revision 1.107
	sys/dev/ccd.c: revision 1.179
	sys/dev/ofw/ofdisk.c: revision 1.53
Add a disk ioctl DIOCRMWEDGES to remove all wedges of a given disk
(if not busy).

Revision 1.179 / (download) - annotate - [select for diffs], Wed Mar 27 19:13:34 2019 UTC (3 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Changes since 1.178: +3 -2 lines
Diff to previous 1.178 (colored)

Add a disk ioctl DIOCRMWEDGES to remove all wedges of a given disk
(if not busy).

Revision 1.178 / (download) - annotate - [select for diffs], Fri Mar 1 11:06:56 2019 UTC (3 years, 11 months ago) by pgoyette
Branch: MAIN
Changes since 1.177: +4 -4 lines
Diff to previous 1.177 (colored)

Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly
discussed on irc.

NFCI intended.

Ride the earlier kernel bump - it;s getting crowded.

Revision 1.177 / (download) - annotate - [select for diffs], Sun Jan 27 02:08:41 2019 UTC (4 years ago) by pgoyette
Branch: MAIN
Changes since 1.176: +11 -5 lines
Diff to previous 1.176 (colored)

Merge the [pgoyette-compat] branch

Revision 1.175.2.12 / (download) - annotate - [select for diffs], Tue Jan 22 07:42:40 2019 UTC (4 years ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.175.2.11: +10 -19 lines
Diff to previous 1.175.2.11 (colored) to branchpoint 1.175 (colored) next main 1.176 (colored)

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

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

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

FWIW, the above if now needs to written as

	int ret;

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

with appropriate use of braces {}.

Revision 1.175.2.11 / (download) - annotate - [select for diffs], Fri Jan 18 00:01:01 2019 UTC (4 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.175.2.10: +8 -8 lines
Diff to previous 1.175.2.10 (colored) to branchpoint 1.175 (colored)

Don't restrict hooks to having only int or void types.  Pass the hook's
type to the various macros, as needed.

Allows us to reduce diffs to original in at least one or two places (we
no longer have to provide an additional parameter to the hook routine
for returning a non-int return value).

Revision 1.175.2.10 / (download) - annotate - [select for diffs], Mon Jan 14 13:34:27 2019 UTC (4 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.175.2.9: +4 -4 lines
Diff to previous 1.175.2.9 (colored) to branchpoint 1.175 (colored)

Create a variant of the HOOK macros that handles hook routines of
type void, and use them where appropriate.

Revision 1.175.2.9 / (download) - annotate - [select for diffs], Sun Jan 13 10:49:50 2019 UTC (4 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.175.2.8: +6 -6 lines
Diff to previous 1.175.2.8 (colored) to branchpoint 1.175 (colored)

Remove the HOOK2 versions of the MODULE_HOOK macros.  There were
only a few uses, and using them led to some lack of clarity in the
code.  Instead, we now use two separate hooks, with names that
make it clear(er) what we're doing.

This also positions us to start unraveling some of the rtsock_50
mess, which will need (at least) five hooks.

Revision 1.175.2.8 / (download) - annotate - [select for diffs], Sat Sep 29 21:36:14 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.175.2.7: +3 -4 lines
Diff to previous 1.175.2.7 (colored) to branchpoint 1.175 (colored)

In MODULE_HOOK_CALL_DECL we don't need to provide the actual argument
list for calling the hook function, nor do we need to provide the
default value (for when the hook has not been set).

Revision 1.175.2.7 / (download) - annotate - [select for diffs], Tue Sep 18 23:03:54 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.175.2.6: +4 -4 lines
Diff to previous 1.175.2.6 (colored) to branchpoint 1.175 (colored)

The COMPAT_HOOK macros were renamed to MODULE_HOOK, adjust all callers

Revision 1.175.2.6 / (download) - annotate - [select for diffs], Tue Sep 18 01:15:57 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.175.2.5: +6 -2 lines
Diff to previous 1.175.2.5 (colored) to branchpoint 1.175 (colored)

Split the COMPAT_CALL_HOOK to separate the declaration from the
implementation.  Some hooks are called from multiple source files,
and the old method resulted in duplicate implementations.

Implement MP-safe hooks for the usb_subr_30 code.  Pass the helper
functions as arguments to the compat code so it does not have to
determine if the kernel contains usb code.

Revision 1.175.2.5 / (download) - annotate - [select for diffs], Sun Sep 16 04:57:22 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.175.2.4: +15 -4 lines
Diff to previous 1.175.2.4 (colored) to branchpoint 1.175 (colored)

Yay - we got the ccd_ioctl_60 stuff to build!

Now we can use that as a template for cleaning up all the others.

Revision 1.175.2.4 / (download) - annotate - [select for diffs], Fri Mar 23 09:22:24 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.175.2.3: +2 -5 lines
Diff to previous 1.175.2.3 (colored) to branchpoint 1.175 (colored)

Remove definition of compat_ccd_ioctl_60() - this is now defined in
sys/kern/compat_stub.c (sync/merge botch)

Revision 1.175.2.3 / (download) - annotate - [select for diffs], Thu Mar 22 01:44:48 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.175.2.2: +5 -2 lines
Diff to previous 1.175.2.2 (colored) to branchpoint 1.175 (colored)

Synch with HEAD, resolve conflicts

Revision 1.175.2.2 / (download) - annotate - [select for diffs], Tue Mar 20 08:11:25 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.175.2.1: +3 -5 lines
Diff to previous 1.175.2.1 (colored) to branchpoint 1.175 (colored)

Initial implementation of sys/kern/kern_stup.c as discussed on tech-kern

For now, we only handle the dev/ccd and NTP needs;  more to follow.

Revision 1.175.2.1 / (download) - annotate - [select for diffs], Sun Mar 18 21:41:31 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.175: +11 -44 lines
Diff to previous 1.175 (colored)

Import compat_60 changes for dev/ccd

Revision 1.176 / (download) - annotate - [select for diffs], Sun Mar 18 20:33:52 2018 UTC (4 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-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, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Changes since 1.175: +11 -48 lines
Diff to previous 1.175 (colored)

factor out the ccd COMPAT_60 code.

Revision 1.175 / (download) - annotate - [select for diffs], Tue Jan 23 22:42:29 2018 UTC (5 years ago) by pgoyette
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.174: +3 -3 lines
Diff to previous 1.174 (colored)

Add "bufq_fcfs" requirement to all those driver modules that explicitly
request it in their calls to bufq_alloc().

Revision 1.174 / (download) - annotate - [select for diffs], Tue Dec 19 03:31:12 2017 UTC (5 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.173: +3 -3 lines
Diff to previous 1.173 (colored)

Ooppss, need an ampersand call calling LIST_EMPTY() macro

Revision 1.173 / (download) - annotate - [select for diffs], Tue Dec 19 03:24:09 2017 UTC (5 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.172: +3 -6 lines
Diff to previous 1.172 (colored)

There is currently a counter nactive which tracks the INSERT and REMOVE
of entries in the ccds LIST.

Since the counter is checked only when the ccd module is being unloaded,
remove the counter completely and just check for LIST_EMPTY(ccds).

No functional change intended.

Revision 1.143.10.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:58 2017 UTC (5 years, 1 month ago) by jdolecek
Branch: tls-maxphys
Changes since 1.143.10.3: +222 -67 lines
Diff to previous 1.143.10.3 (colored) to branchpoint 1.143 (colored) next main 1.144 (colored)

update from HEAD

Revision 1.154.2.6 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:00 2017 UTC (5 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.154.2.5: +51 -15 lines
Diff to previous 1.154.2.5 (colored) to branchpoint 1.154 (colored) next main 1.155 (colored)

Sync with HEAD

Revision 1.172 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:08 2017 UTC (5 years, 8 months ago) by chs
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: netbsd-8
Changes since 1.171: +3 -14 lines
Diff to previous 1.171 (colored)

remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.171.4.2 / (download) - annotate - [select for diffs], Sat Apr 29 10:50:46 2017 UTC (5 years, 9 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.171.4.1: +2 -3 lines
Diff to previous 1.171.4.1 (colored) to branchpoint 1.171 (colored) next main 1.172 (colored)

Remove explicit inclusion of <sys/localcount.h> since there is no
explicit usage of localcounts here.  <sys/conf.h> will take care of
including as needed.

Revision 1.171.4.1 / (download) - annotate - [select for diffs], Sat Apr 29 09:17:58 2017 UTC (5 years, 9 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.171: +5 -2 lines
Diff to previous 1.171 (colored)

Add DEVSW_MODULE_INIT to existing device-driver modules, so that they
willl have a localcount defined and thus be permitted to load.  Without
a localcount, loading the module will return EINVAL.

XXX the dtrace and drm stuff might need to be fed back upstream?

Revision 1.166.2.3 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:10 2017 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.166.2.2: +48 -2 lines
Diff to previous 1.166.2.2 (colored) to branchpoint 1.166 (colored) next main 1.167 (colored)

Sync with HEAD

Revision 1.168.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:44 2017 UTC (5 years, 9 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.168: +50 -3 lines
Diff to previous 1.168 (colored) next main 1.169 (colored)

Sync with HEAD

Revision 1.171 / (download) - annotate - [select for diffs], Wed Apr 5 18:34:56 2017 UTC (5 years, 9 months ago) by jdolecek
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-20170426, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: prg-localcount2
Changes since 1.170: +3 -3 lines
Diff to previous 1.170 (colored)

introduce DKCACHE_COMBINE() macro - it combines the flags in a way that
all common flags are retained, and flags regarding write cache are preserved
if either of the devices has it; callers can thus rely on write cache not
being possible to be used when both flags are missing

use the new macro for ccd(4)

Revision 1.170 / (download) - annotate - [select for diffs], Thu Mar 30 16:50:32 2017 UTC (5 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.169: +48 -2 lines
Diff to previous 1.169 (colored)

support DIOCGCACHE - result is intersection of flags returned by underlying
devices; devices can't be added or removed, so the feature flags remain
static

add support for DIOCGSTRATEGY while here, mainly to make dkctl(8) output neater

Revision 1.166.2.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:27 2017 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.166.2.1: +4 -3 lines
Diff to previous 1.166.2.1 (colored) to branchpoint 1.166 (colored)

Sync with HEAD

Revision 1.169 / (download) - annotate - [select for diffs], Sun Mar 5 23:07:12 2017 UTC (5 years, 10 months ago) by mlelstv
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320
Changes since 1.168: +4 -3 lines
Diff to previous 1.168 (colored)

Enhance disk metrics by calculating a weighted sum that is incremented
by the number of concurrent I/O requests. Also introduce a new disk_wait()
function to measure requests waiting in a bufq.
iostat -y now reports data about waiting and active requests.

So far only drivers using dksubr and dk, ccd, wd and xbd collect data about
waiting requests.

Revision 1.166.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:31 2017 UTC (6 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.166: +4 -3 lines
Diff to previous 1.166 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.154.2.5 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:01 2016 UTC (6 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.154.2.4: +4 -3 lines
Diff to previous 1.154.2.4 (colored) to branchpoint 1.154 (colored)

Sync with HEAD

Revision 1.168 / (download) - annotate - [select for diffs], Sun Nov 20 02:35:19 2016 UTC (6 years, 2 months ago) by pgoyette
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, nick-nhusb-base-20161204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.167: +4 -3 lines
Diff to previous 1.167 (colored)

Avoid calling bufq_free() from critical section.

Revision 1.154.2.4 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:39 2016 UTC (6 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.154.2.3: +10 -2 lines
Diff to previous 1.154.2.3 (colored) to branchpoint 1.154 (colored)

Sync with HEAD

Revision 1.167 / (download) - annotate - [select for diffs], Sun Aug 7 02:40:41 2016 UTC (6 years, 5 months ago) by pgoyette
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161004, localcount-20160914
Changes since 1.166: +10 -2 lines
Diff to previous 1.166 (colored)

Create the kern.ccd sysctl sub-tree when built as a module.  Even though
the contents of the sub-tree are all structures, and thus not displayed
via sysctl(8), the info is potentially useful to programs.  (For example,
ccdconfig could use this to determine how many units are available.)

The sub-tree is already available when the module is included as built-in
module.

Revision 1.154.2.3 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:48 2015 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.154.2.2: +3 -3 lines
Diff to previous 1.154.2.2 (colored) to branchpoint 1.154 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.166 / (download) - annotate - [select for diffs], Tue Dec 8 20:36:14 2015 UTC (7 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Branch point for: pgoyette-localcount
Changes since 1.165: +3 -3 lines
Diff to previous 1.165 (colored)

Replace DIOCGPART -> DIOCGPARTINFO which returns the data needed instead of
pointers.

Revision 1.154.2.2 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:56 2015 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.154.2.1: +10 -8 lines
Diff to previous 1.154.2.1 (colored) to branchpoint 1.154 (colored)

Sync with HEAD

Revision 1.165 / (download) - annotate - [select for diffs], Thu Aug 20 14:40:17 2015 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921
Changes since 1.164: +4 -3 lines
Diff to previous 1.164 (colored)

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

Revision 1.151.2.3 / (download) - annotate - [select for diffs], Fri Jul 31 17:29:45 2015 UTC (7 years, 6 months ago) by snj
Branch: 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-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.151.2.2: +3 -2 lines
Diff to previous 1.151.2.2 (colored) to branchpoint 1.151 (colored) next main 1.152 (colored)

Pull up following revision(s) (requested by christos in ticket #924):
	sys/dev/ccd.c: revision 1.163
initialized sc_unit (from Riastradh)
XXX: pullup-7

Revision 1.164 / (download) - annotate - [select for diffs], Tue Jul 21 21:42:15 2015 UTC (7 years, 6 months ago) by skrll
Branch: MAIN
Changes since 1.163: +7 -7 lines
Diff to previous 1.163 (colored)

Trailing whitespace.

Revision 1.163 / (download) - annotate - [select for diffs], Thu Jun 18 17:21:55 2015 UTC (7 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.162: +3 -2 lines
Diff to previous 1.162 (colored)

initialized sc_unit (from Riastradh)
XXX: pullup-7

Revision 1.154.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:08 2015 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.154: +80 -43 lines
Diff to previous 1.154 (colored)

Sync with HEAD

Revision 1.162 / (download) - annotate - [select for diffs], Fri Jan 2 19:42:06 2015 UTC (8 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406
Changes since 1.161: +3 -3 lines
Diff to previous 1.161 (colored)

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.161 / (download) - annotate - [select for diffs], Wed Dec 31 19:52:05 2014 UTC (8 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.160: +3 -22 lines
Diff to previous 1.160 (colored)

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.160 / (download) - annotate - [select for diffs], Wed Dec 31 17:06:48 2014 UTC (8 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.159: +2 -38 lines
Diff to previous 1.159 (colored)

Centralize wedge ioctls in disk_ioctl.

Revision 1.159 / (download) - annotate - [select for diffs], Tue Dec 30 20:57:37 2014 UTC (8 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.158: +16 -5 lines
Diff to previous 1.158 (colored)

destroy the pool and the mutex when detaching.

Revision 1.158 / (download) - annotate - [select for diffs], Tue Dec 30 20:29:42 2014 UTC (8 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.157: +42 -20 lines
Diff to previous 1.157 (colored)

- only create ccd's when we ask them to be created.
- keep track of the number of active ccd's so that we don't modunload and
  crash
- fix formatting.
- don't attach 4, the argument is not used.

Revision 1.157 / (download) - annotate - [select for diffs], Tue Dec 30 19:11:05 2014 UTC (8 years, 1 month ago) by mlelstv
Branch: MAIN
Changes since 1.156: +56 -13 lines
Diff to previous 1.156 (colored)

Fix locking error.
Clear EPASSTHROUGH return value from disk_ioctl.
Add missing wedge ioctls.

Revision 1.156 / (download) - annotate - [select for diffs], Tue Dec 30 12:42:16 2014 UTC (8 years, 1 month ago) by jnemeth
Branch: MAIN
Changes since 1.155: +14 -2 lines
Diff to previous 1.155 (colored)

Slowly bring this thing kicking and screaming into the 21st century:

- use struct disk_geom
- add wedge support

Revision 1.155 / (download) - annotate - [select for diffs], Tue Dec 30 02:21:10 2014 UTC (8 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.154: +6 -2 lines
Diff to previous 1.154 (colored)

call disk_ioctl.

Revision 1.151.2.2 / (download) - annotate - [select for diffs], Tue Nov 11 10:42:22 2014 UTC (8 years, 2 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-0-RC2, netbsd-7-0-RC1
Changes since 1.151.2.1: +10 -5 lines
Diff to previous 1.151.2.1 (colored) to branchpoint 1.151 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #202):
	sys/dev/ccd.c: revision 1.153
	sys/dev/ccd.c: revision 1.154
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.313
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.314
	sys/dev/ld.c: revision 1.77
	sys/dev/vnd.c: revision 1.233
	sys/dev/dksubr.c: revision 1.52
	sys/dev/dksubr.c: revision 1.53
clamp total number of sectors to UINT32_MAX instead of providing the
lower 32bit of the 64bit number.
No longer warn about differences bewteen disk size and total sector count
in disklabel when the latter is just clamped to the maximum.

Revision 1.154 / (download) - annotate - [select for diffs], Sat Oct 11 12:36:25 2014 UTC (8 years, 3 months ago) by mlelstv
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.153: +5 -3 lines
Diff to previous 1.153 (colored)

No longer warn about differences bewteen disk size and total sector count
in disklabel when the latter is just clamped to the maximum.

Revision 1.153 / (download) - annotate - [select for diffs], Sat Oct 11 12:01:27 2014 UTC (8 years, 3 months ago) by mlelstv
Branch: MAIN
Changes since 1.152: +7 -4 lines
Diff to previous 1.152 (colored)

clamp total number of sectors to UINT32_MAX instead of providing the
lower 32bit of the 64bit number.

Revision 1.143.6.1 / (download) - annotate - [select for diffs], Wed Aug 27 14:39:19 2014 UTC (8 years, 5 months ago) by msaitoh
Branch: netbsd-6
Changes since 1.143: +72 -9 lines
Diff to previous 1.143 (colored) next main 1.144 (colored)

Pull up following revision(s) (requested by sborrill in ticket #1113):
	sbin/ccdconfig/ccdconfig.c	1.54 via patch
	sys/dev/ccd.c			1.152 via patch
	sys/dev/ccdvar.h		1.34 via patch

Switch size_t to uint64_t in appropriate places to ensure that ccd(4)
works with component and total sizes of > 2TB.
Make kernel print device information when a ccd configured.
Fix some typos in comments.

Revision 1.129.10.2 / (download) - annotate - [select for diffs], Wed Aug 27 05:47:43 2014 UTC (8 years, 5 months ago) by msaitoh
Branch: netbsd-5
Changes since 1.129.10.1: +72 -9 lines
Diff to previous 1.129.10.1 (colored) to branchpoint 1.129 (colored) next main 1.130 (colored)

Pull up following revision(s) (requested by sborrill in ticket #1919):
	sbin/ccdconfig/ccdconfig.c	1.54 via patch
	sys/dev/ccd.c			1.152 via patch
	sys/dev/ccdvar.h		1.34 via patch

Switch size_t to uint64_t in appropriate places to ensure that ccd(4)
works with component and total sizes of > 2TB.
Make kernel print device information when a ccd configured.
Fix some typos in comments.

Revision 1.143.10.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:35 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.143.10.2: +13 -24 lines
Diff to previous 1.143.10.2 (colored) to branchpoint 1.143 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.151.2.1 / (download) - annotate - [select for diffs], Mon Aug 18 12:40:36 2014 UTC (8 years, 5 months ago) by martin
Branch: netbsd-7
Changes since 1.151: +72 -9 lines
Diff to previous 1.151 (colored)

Pull up following revision(s) (requested by sborrill in ticket #38):
	sys/dev/ccd.c: revision 1.152
	sbin/ccdconfig/ccdconfig.c: revision 1.54
	sbin/ccdconfig/ccdconfig.c: revision 1.55
	sys/dev/ccdvar.h: revision 1.34
Switch size_t to uint64_t in appropriate places to ensure that ccd(4) works
with component and total sizes of > 2TB.
Add COMPAT_60 code for platforms where this alters userland-accessible
structures.
Make kernel print device information when a ccd configured.
Fix some typos in comments.
Don't print ccd_size with %zu; it no longer has type size_t.
Instead, cast to uintmax_t and print with %ju.

Revision 1.152 / (download) - annotate - [select for diffs], Sat Aug 16 19:27:27 2014 UTC (8 years, 5 months ago) by sborrill
Branch: MAIN
Changes since 1.151: +72 -9 lines
Diff to previous 1.151 (colored)

Switch size_t to uint64_t in appropriate places to ensure that ccd(4) works
with component and total sizes of > 2TB.
Add COMPAT_60 code for platforms where this alters userland-accessible
structures.
Make kernel print device information when a ccd configured.
Fix some typos in comments.

Revision 1.147.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:50 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.147: +10 -17 lines
Diff to previous 1.147 (colored) next main 1.148 (colored)

Rebase.

Revision 1.151 / (download) - annotate - [select for diffs], Fri Jul 25 08:10:35 2014 UTC (8 years, 6 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.150: +3 -2 lines
Diff to previous 1.150 (colored)

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

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.149 / (download) - annotate - [select for diffs], Sat Jun 14 07:39:00 2014 UTC (8 years, 7 months ago) by hannken
Branch: MAIN
Changes since 1.148: +5 -16 lines
Diff to previous 1.148 (colored)

Change dk_lookup() to return an anonymous vnode not associated with
any file system.  Change all consumers of dk_lookup() to get the
device from "v_rdev" instead of VOP_GETATTR() as specfs does not
support VOP_GETATTR().  Devices obtained with dk_lookup() will no
longer disappear on forced unmounts.

Fix for PR kern/48849 (root mirror raid fails on shutdown)

Welcome to 6.99.44

Revision 1.142.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:40:19 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.142.2.1: +267 -59 lines
Diff to previous 1.142.2.1 (colored) to branchpoint 1.142 (colored) next main 1.143 (colored)

sync with head.

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

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

Revision 1.144.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:35 2014 UTC (8 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.144: +10 -12 lines
Diff to previous 1.144 (colored) next main 1.145 (colored)

sync with head

Revision 1.148 / (download) - annotate - [select for diffs], Sun Apr 6 00:56:39 2014 UTC (8 years, 9 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.147: +5 -3 lines
Diff to previous 1.147 (colored)

Don't destroy locked mutex. Don't access freed memory.

Revision 1.147 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:09 2014 UTC (8 years, 11 months ago) by pooka
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.146: +2 -8 lines
Diff to previous 1.146 (colored)

Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.146 / (download) - annotate - [select for diffs], Sat Dec 28 19:44:41 2013 UTC (9 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.145: +3 -3 lines
Diff to previous 1.145 (colored)

ccd module also needs dk_subr

Revision 1.145 / (download) - annotate - [select for diffs], Thu Sep 12 12:22:40 2013 UTC (9 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.144: +6 -4 lines
Diff to previous 1.144 (colored)

#ifdef a few variable declarations/initializations to match their use

Revision 1.143.10.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:16 2013 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.143.10.1: +271 -57 lines
Diff to previous 1.143.10.1 (colored) to branchpoint 1.143 (colored)

resync from head

Revision 1.144 / (download) - annotate - [select for diffs], Sat Apr 27 17:13:32 2013 UTC (9 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Changes since 1.143: +265 -55 lines
Diff to previous 1.143 (colored)

- no limit on the number of ccd devices.
- provide sysctl for getting information.

Revision 1.143.10.1 / (download) - annotate - [select for diffs], Sun Dec 2 05:46:39 2012 UTC (10 years, 2 months ago) by tls
Branch: tls-maxphys
Changes since 1.143: +27 -3 lines
Diff to previous 1.143 (colored)


Don't pass NULL struct dkdriver to disk_init.  That's seriously bogus.

Revision 1.142.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:25 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.142: +13 -30 lines
Diff to previous 1.142 (colored)

sync with head

Revision 1.143 / (download) - annotate - [select for diffs], Sun Nov 13 23:02:46 2011 UTC (11 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, 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-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, agc-symver-base, agc-symver
Branch point for: tls-maxphys, netbsd-6
Changes since 1.142: +13 -30 lines
Diff to previous 1.142 (colored)

use getdisksize

Revision 1.142 / (download) - annotate - [select for diffs], Fri Oct 14 09:23:29 2011 UTC (11 years, 3 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.141: +6 -3 lines
Diff to previous 1.141 (colored)

Change the vnode locking protocol of VOP_GETATTR() to request at least
a shared lock.  Make all calls outside of file systems respect it.

The calls from file systems need review.

No objections from tech-kern.

Revision 1.141 / (download) - annotate - [select for diffs], Mon Jul 4 16:06:45 2011 UTC (11 years, 7 months ago) by joerg
Branch: MAIN
Changes since 1.140: +3 -3 lines
Diff to previous 1.140 (colored)

Fix memset usage.

Revision 1.138.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:19:54 2011 UTC (11 years, 7 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.138: +15 -14 lines
Diff to previous 1.138 (colored) next main 1.139 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.140 / (download) - annotate - [select for diffs], Tue Jun 21 06:23:38 2011 UTC (11 years, 7 months ago) by jruoho
Branch: MAIN
Changes since 1.139: +12 -11 lines
Diff to previous 1.139 (colored)

Adjust the #ifdefs such that ccd(4) and cgd(4) show in
modstat(8) even if built into the kernel.

Revision 1.139 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:51 2011 UTC (11 years, 7 months ago) by rmind
Branch: MAIN
Changes since 1.138: +5 -5 lines
Diff to previous 1.138 (colored)

Welcome to 5.99.53!  Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.

Revision 1.137.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:07:38 2011 UTC (11 years, 7 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.137: +3 -42 lines
Diff to previous 1.137 (colored) next main 1.138 (colored)

Sync with HEAD.

Revision 1.134.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:52:59 2011 UTC (11 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.134.4.1: +12 -44 lines
Diff to previous 1.134.4.1 (colored) to branchpoint 1.134 (colored) next main 1.135 (colored)

sync with head

Revision 1.137.4.1 / (download) - annotate - [select for diffs], Thu Feb 17 12:00:08 2011 UTC (11 years, 11 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.137: +3 -42 lines
Diff to previous 1.137 (colored) next main 1.138 (colored)

Sync with HEAD

Revision 1.138 / (download) - annotate - [select for diffs], Tue Feb 8 20:20:26 2011 UTC (11 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: cherry-xenmp
Changes since 1.137: +3 -42 lines
Diff to previous 1.137 (colored)

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.137 / (download) - annotate - [select for diffs], Fri Nov 19 09:11:45 2010 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.136: +4 -5 lines
Diff to previous 1.136 (colored)

Fix previous, was all wrong. noticed by enami.

Revision 1.136 / (download) - annotate - [select for diffs], Fri Nov 19 06:44:39 2010 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.135: +10 -4 lines
Diff to previous 1.135 (colored)

Introduce struct pathbuf. This is an abstraction to hold a pathname
and the metadata required to interpret it. Callers of namei must now
create a pathbuf and pass it to NDINIT (instead of a string and a
uio_seg), then destroy the pathbuf after the namei session is
complete.

Update all namei call sites accordingly. Add a pathbuf(9) man page and
update namei(9).

The pathbuf interface also now appears in a couple of related
additional places that were passing string/uio_seg pairs that were
later fed into NDINIT. Update other call sites accordingly.

Revision 1.135 / (download) - annotate - [select for diffs], Sun Nov 14 03:49:52 2010 UTC (12 years, 2 months ago) by uebayasi
Branch: MAIN
Changes since 1.134: +4 -2 lines
Diff to previous 1.134 (colored)

Include uvm/uvm_extern.h to access uvmexp.  gtmpsc.c doesn't need
uvm(9) API at all.

Revision 1.134.4.1 / (download) - annotate - [select for diffs], Tue Mar 16 15:38:05 2010 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.134: +5 -5 lines
Diff to previous 1.134 (colored)

Change struct uvm_object::vmobjlock to be dynamically allocated with
mutex_obj_alloc().  It allows us to share the locks among UVM objects.

Revision 1.132.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:31:45 2009 UTC (13 years, 6 months ago) by jym
Branch: jym-xensuspend
Changes since 1.132.2.1: +37 -2 lines
Diff to previous 1.132.2.1 (colored) to branchpoint 1.132 (colored) next main 1.133 (colored)

Sync with HEAD.

Revision 1.128.6.3 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:19 2009 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.128.6.2: +37 -2 lines
Diff to previous 1.128.6.2 (colored) to branchpoint 1.128 (colored) next main 1.129 (colored)

sync with head

Revision 1.134 / (download) - annotate - [select for diffs], Fri Jun 5 19:21:02 2009 UTC (13 years, 7 months ago) by haad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase
Branch point for: rmind-uvmplock
Changes since 1.133: +37 -2 lines
Diff to previous 1.133 (colored)

Add work in support for compiling ccd and cgd drivers as a modules. I forgot
to committ when I have written device module autoloading stuff.

Revision 1.132.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:19:05 2009 UTC (13 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.132: +285 -198 lines
Diff to previous 1.132 (colored)

Sync with HEAD.

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

Revision 1.128.6.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:32 2009 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.128.6.1: +291 -204 lines
Diff to previous 1.128.6.1 (colored) to branchpoint 1.128 (colored)

sync with head.

Revision 1.129.8.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:13 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.129.8.1: +285 -198 lines
Diff to previous 1.129.8.1 (colored) to branchpoint 1.129 (colored) next main 1.130 (colored)

Sync with HEAD.

Revision 1.129.10.1 / (download) - annotate - [select for diffs], Sat Apr 4 23:04:57 2009 UTC (13 years, 10 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.129: +285 -198 lines
Diff to previous 1.129 (colored)

Pull up following revision(s) (requested by ad in ticket #658):
	sys/dev/ccd.c: revision 1.133 via patch
	sys/dev/ccdvar.h: revision 1.31
Fix problems with ccd:
- Pending async I/O was tossed on unconfigure (should not happen, but..)
- It could exhaust memory under heavy I/O load.
- If memory allocation failed, disk transfers could stall.
- v_numoutput was updated without v_interlock held.
Additionally:
- Make it MPSAFE.
- Use kmem_alloc().

Revision 1.133 / (download) - annotate - [select for diffs], Sat Apr 4 08:29:39 2009 UTC (13 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.132: +285 -198 lines
Diff to previous 1.132 (colored)

Fix problems with ccd:

- Pending async I/O was tossed on unconfigure (should not happen, but..)
- It could exhaust memory under heavy I/O load.
- If memory allocation failed, disk transfers could stall.
- v_numoutput was updated without v_interlock held.

Additionally:

- Make it MPSAFE.
- Use kmem_alloc().

Revision 1.129.8.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:17:51 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.129: +11 -11 lines
Diff to previous 1.129 (colored)

Sync with HEAD.

Revision 1.127.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:52 2009 UTC (14 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.127.6.3: +9 -9 lines
Diff to previous 1.127.6.3 (colored) to branchpoint 1.127 (colored) next main 1.128 (colored)

Sync with HEAD.

Revision 1.132 / (download) - annotate - [select for diffs], Tue Jan 13 13:35:52 2009 UTC (14 years ago) by yamt
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.131: +5 -5 lines
Diff to previous 1.131 (colored)

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

Revision 1.131 / (download) - annotate - [select for diffs], Sun Jan 11 09:51:38 2009 UTC (14 years ago) by cegger
Branch: MAIN
Changes since 1.130: +8 -8 lines
Diff to previous 1.130 (colored)

make this compile

Revision 1.130 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:50 2009 UTC (14 years ago) by christos
Branch: MAIN
Changes since 1.129: +8 -8 lines
Diff to previous 1.129 (colored)

merge christos-time_t

Revision 1.128.2.2 / (download) - annotate - [select for diffs], Sat Nov 1 21:22:26 2008 UTC (14 years, 3 months ago) by christos
Branch: christos-time_t
Changes since 1.128.2.1: +2 -9 lines
Diff to previous 1.128.2.1 (colored) to branchpoint 1.128 (colored) next main 1.129 (colored)

Sync with head.

Revision 1.127.6.3 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:11 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.127.6.2: +2 -9 lines
Diff to previous 1.127.6.2 (colored) to branchpoint 1.127 (colored)

Sync with HEAD.

Revision 1.128.4.1 / (download) - annotate - [select for diffs], Sun May 18 12:33:30 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.128: +2 -9 lines
Diff to previous 1.128 (colored) next main 1.129 (colored)

sync with head.

Revision 1.128.6.1 / (download) - annotate - [select for diffs], Fri May 16 02:23:48 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.128: +2 -9 lines
Diff to previous 1.128 (colored)

sync with head.

Revision 1.129 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:46 2008 UTC (14 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, 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, netbsd-5-base, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, matt-mips64-base2, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, christos-time_t-nbase, christos-time_t-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.128: +2 -9 lines
Diff to previous 1.128 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.127.6.2 / (download) - annotate - [select for diffs], Sat Apr 5 23:33:20 2008 UTC (14 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.127.6.1: +13 -3 lines
Diff to previous 1.127.6.1 (colored) to branchpoint 1.127 (colored)

- 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.127.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:36 2008 UTC (14 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.127: +5 -5 lines
Diff to previous 1.127 (colored)

Sync with HEAD.

Revision 1.128.2.1 / (download) - annotate - [select for diffs], Sat Mar 29 20:46:59 2008 UTC (14 years, 10 months ago) by christos
Branch: christos-time_t
Changes since 1.128: +8 -8 lines
Diff to previous 1.128 (colored)

Welcome to the time_t=long long dev_t=uint64_t branch.

Revision 1.104.2.9 / (download) - annotate - [select for diffs], Mon Mar 24 09:38:46 2008 UTC (14 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.104.2.8: +5 -5 lines
Diff to previous 1.104.2.8 (colored) next main 1.105 (colored)

sync with head.

Revision 1.122.6.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:35 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.122.6.2: +3 -2 lines
Diff to previous 1.122.6.2 (colored) to branchpoint 1.122 (colored) next main 1.123 (colored)

sync with HEAD

Revision 1.128 / (download) - annotate - [select for diffs], Fri Mar 21 21:54:59 2008 UTC (14 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, christos-time_t
Changes since 1.127: +5 -5 lines
Diff to previous 1.127 (colored)

Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.123.4.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:31 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.123.4.1: +8 -4 lines
Diff to previous 1.123.4.1 (colored) to branchpoint 1.123 (colored) next main 1.124 (colored)

Sync with HEAD.

Revision 1.104.2.8 / (download) - annotate - [select for diffs], Mon Feb 4 09:23:17 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.104.2.7: +3 -2 lines
Diff to previous 1.104.2.7 (colored)

sync with head.

Revision 1.127 / (download) - annotate - [select for diffs], Sat Feb 2 10:40:50 2008 UTC (15 years ago) by hannken
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Branch point for: mjf-devfs2
Changes since 1.126: +3 -2 lines
Diff to previous 1.126 (colored)

ccdbuffer(): add missing initialization of new bufs b_objlock.

Revision 1.104.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:42:23 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.104.2.6: +7 -4 lines
Diff to previous 1.104.2.6 (colored)

sync with head

Revision 1.122.6.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:52:11 2008 UTC (15 years ago) by matt
Branch: matt-armv6
Changes since 1.122.6.1: +11 -8 lines
Diff to previous 1.122.6.1 (colored) to branchpoint 1.122 (colored)

sync with HEAD

Revision 1.125.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:53:45 2008 UTC (15 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.125: +7 -4 lines
Diff to previous 1.125 (colored) next main 1.126 (colored)

Sync with HEAD

Revision 1.126 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:36 2008 UTC (15 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.125: +7 -4 lines
Diff to previous 1.125 (colored)

Merge vmlocking2 to head.

Revision 1.122.4.3 / (download) - annotate - [select for diffs], Sun Dec 9 19:37:40 2007 UTC (15 years, 1 month ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.122.4.2: +3 -3 lines
Diff to previous 1.122.4.2 (colored) to branchpoint 1.122 (colored) next main 1.123 (colored)

Sync with HEAD.

Revision 1.123.4.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:19:18 2007 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.123: +6 -6 lines
Diff to previous 1.123 (colored)

Sync with HEAD.

Revision 1.124.2.2 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:16 2007 UTC (15 years, 1 month ago) by ad
Branch: vmlocking2
Changes since 1.124.2.1: +3 -3 lines
Diff to previous 1.124.2.1 (colored) to branchpoint 1.124 (colored) next main 1.125 (colored)

Sync with head.

Revision 1.104.2.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:29:15 2007 UTC (15 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.104.2.5: +6 -6 lines
Diff to previous 1.104.2.5 (colored)

sync with head

Revision 1.125 / (download) - annotate - [select for diffs], Wed Dec 5 07:06:50 2007 UTC (15 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.124: +3 -3 lines
Diff to previous 1.124 (colored)

Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
for Solaris.

Revision 1.124.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:02:54 2007 UTC (15 years, 2 months ago) by ad
Branch: vmlocking2
Changes since 1.124: +7 -4 lines
Diff to previous 1.124 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.122.4.2 / (download) - annotate - [select for diffs], Tue Nov 27 19:36:57 2007 UTC (15 years, 2 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.122.4.1: +5 -5 lines
Diff to previous 1.122.4.1 (colored) to branchpoint 1.122 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.124 / (download) - annotate - [select for diffs], Mon Nov 26 19:01:34 2007 UTC (15 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase
Branch point for: vmlocking2
Changes since 1.123: +5 -5 lines
Diff to previous 1.123 (colored)

Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern

Revision 1.122.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:25:26 2007 UTC (15 years, 2 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.122: +5 -6 lines
Diff to previous 1.122 (colored)

sync with HEAD

Revision 1.104.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:29:56 2007 UTC (15 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.104.2.4: +5 -6 lines
Diff to previous 1.104.2.4 (colored)

sync with head.

Revision 1.122.4.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:44:08 2007 UTC (15 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.122: +5 -6 lines
Diff to previous 1.122 (colored)

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.122.8.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:47:59 2007 UTC (15 years, 3 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.122: +5 -6 lines
Diff to previous 1.122 (colored) next main 1.123 (colored)

sync with head.

Revision 1.123 / (download) - annotate - [select for diffs], Mon Oct 8 16:41:10 2007 UTC (15 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.122: +5 -6 lines
Diff to previous 1.122 (colored)

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

Revision 1.104.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:33:10 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.104.2.3: +14 -17 lines
Diff to previous 1.104.2.3 (colored)

sync with head.

Revision 1.116.4.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:04:18 2007 UTC (15 years, 5 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.116: +4 -3 lines
Diff to previous 1.116 (colored) next main 1.117 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.118.2.8 / (download) - annotate - [select for diffs], Fri Aug 24 23:28:33 2007 UTC (15 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.118.2.7: +5 -3 lines
Diff to previous 1.118.2.7 (colored) next main 1.119 (colored)

Sync with buffer cache locking changes. See buf.h/vfs_bio.c for details.
Some minor portions are incomplete and needs to be verified as a whole.

Revision 1.118.2.7 / (download) - annotate - [select for diffs], Mon Aug 20 18:16:09 2007 UTC (15 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.118.2.6: +5 -6 lines
Diff to previous 1.118.2.6 (colored)

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

Revision 1.118.2.6 / (download) - annotate - [select for diffs], Sun Aug 19 19:24:19 2007 UTC (15 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.118.2.5: +10 -12 lines
Diff to previous 1.118.2.5 (colored)

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

Revision 1.121.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:48:11 2007 UTC (15 years, 5 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.121: +5 -9 lines
Diff to previous 1.121 (colored) next main 1.122 (colored)

Sync with HEAD.

Revision 1.122.10.2 / (download) - annotate - [select for diffs], Sun Jul 29 12:50:18 2007 UTC (15 years, 6 months ago) by ad
Branch: matt-mips64
Changes since 1.122.10.1: +1482 -0 lines
Diff to previous 1.122.10.1 (colored) to branchpoint 1.122 (colored) next main 1.123 (colored)

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.122.10.1, Sun Jul 29 12:50:17 2007 UTC (15 years, 6 months ago) by ad
Branch: matt-mips64
Changes since 1.122: +0 -1482 lines
FILE REMOVED

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

Revision 1.122 / (download) - annotate - [select for diffs], Sun Jul 29 12:50:17 2007 UTC (15 years, 6 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.121: +5 -9 lines
Diff to previous 1.121 (colored)

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.118.2.5 / (download) - annotate - [select for diffs], Sun Jul 15 15:52:40 2007 UTC (15 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.118.2.4: +4 -3 lines
Diff to previous 1.118.2.4 (colored)

Sync with head.

Revision 1.119.2.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:04:58 2007 UTC (15 years, 6 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.119: +5 -4 lines
Diff to previous 1.119 (colored) next main 1.120 (colored)

Sync with head.

Revision 1.121 / (download) - annotate - [select for diffs], Mon Jul 9 21:00:28 2007 UTC (15 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.120: +3 -3 lines
Diff to previous 1.120 (colored)

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.116.2.1 / (download) - annotate - [select for diffs], Sun Jul 1 17:09:24 2007 UTC (15 years, 7 months ago) by bouyer
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-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, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.116: +4 -3 lines
Diff to previous 1.116 (colored) next main 1.117 (colored)

Pull up following revision(s) (requested by cube in ticket #748):
	sys/dev/dksubr.c: revision 1.29
	sys/dev/ccd.c: revision 1.120
	sys/dev/raidframe/rf_disks.c: revision 1.66
	sys/dev/raidframe/rf_reconstruct.c: revision 1.96
	sys/dev/cgd.c: revision 1.45
	sys/dev/dkvar.h: revision 1.11
	sys/dev/raidframe/rf_copyback.c: revision 1.38
Change dk_lookup() to accept an additional argument of the type enum uio_seg
that tells whether the given path is in user space or kernel space, so it
can tell NDINIT().
While the raidframe calls were ok, both ccd(4) and cgd(4) were passing
pointers to user space data, which leads to strange error on i386, as
reported by Jukka Salmi on current-users.

Revision 1.120 / (download) - annotate - [select for diffs], Tue Jun 26 15:22:24 2007 UTC (15 years, 7 months ago) by cube
Branch: MAIN
Changes since 1.119: +4 -3 lines
Diff to previous 1.119 (colored)

Change dk_lookup() to accept an additional argument of the type enum uio_seg
that tells whether the given path is in user space or kernel space, so it
can tell NDINIT().

While the raidframe calls were ok, both ccd(4) and cgd(4) were passing
pointers to user space data, which leads to strange error on i386, as
reported by Jukka Salmi on current-users.

The issue has been there since last august, I'm actually a bit surprised
that no one in the meantime has used ccd(4) or cgd(4) on an arch where it
would have simply faulted.

Revision 1.118.2.4 / (download) - annotate - [select for diffs], Sun Jun 17 21:30:49 2007 UTC (15 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.118.2.3: +4 -3 lines
Diff to previous 1.118.2.3 (colored)

- Increase the number of thread priorities from 128 to 256. How the space
  is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
  is provided, with hooks for fast-path MD code that can run the interrupt
  threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
  locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.

Revision 1.118.2.3 / (download) - annotate - [select for diffs], Sun May 13 17:36:20 2007 UTC (15 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.118.2.2: +6 -8 lines
Diff to previous 1.118.2.2 (colored)

- 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.118.2.2 / (download) - annotate - [select for diffs], Fri Apr 13 20:56:20 2007 UTC (15 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.118.2.1: +3 -3 lines
Diff to previous 1.118.2.1 (colored)

- 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.117.2.2 / (download) - annotate - [select for diffs], Sat Mar 24 14:55:19 2007 UTC (15 years, 10 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.117.2.1: +3 -3 lines
Diff to previous 1.117.2.1 (colored) to branchpoint 1.117 (colored) next main 1.118 (colored)

sync with head.

Revision 1.118.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:50:21 2007 UTC (15 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored)

Sync with head.

Revision 1.119 / (download) - annotate - [select for diffs], Mon Mar 12 18:18:30 2007 UTC (15 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: mjf-ufs-trans
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored)

Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.

Revision 1.117.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:53:02 2007 UTC (15 years, 10 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.117: +7 -7 lines
Diff to previous 1.117 (colored)

Sync with HEAD.

Revision 1.118 / (download) - annotate - [select for diffs], Sun Mar 4 06:01:41 2007 UTC (15 years, 11 months ago) by christos
Branch: MAIN
Branch point for: vmlocking
Changes since 1.117: +7 -7 lines
Diff to previous 1.117 (colored)

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

Revision 1.104.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:09:52 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.104.2.2: +13 -16 lines
Diff to previous 1.104.2.2 (colored)

sync with head.

Revision 1.117 / (download) - annotate - [select for diffs], Thu Feb 15 15:40:51 2007 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.116: +13 -16 lines
Diff to previous 1.116 (colored)

Replace some uses of lockmgr() / simplelocks.

Revision 1.104.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:47:49 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.104.2.1: +11 -67 lines
Diff to previous 1.104.2.1 (colored)

sync with head.

Revision 1.113.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:16:53 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.113.4.1: +8 -8 lines
Diff to previous 1.113.4.1 (colored) to branchpoint 1.113 (colored) next main 1.114 (colored)

sync with head.

Revision 1.113.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:03 2006 UTC (16 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.113: +6 -3 lines
Diff to previous 1.113 (colored) next main 1.114 (colored)

Sync with head.

Revision 1.116 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:44 2006 UTC (16 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.115: +8 -8 lines
Diff to previous 1.115 (colored)

__unused removal on arguments; approved by core.

Revision 1.113.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:05:28 2006 UTC (16 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.113: +10 -7 lines
Diff to previous 1.113 (colored)

sync with head

Revision 1.115 / (download) - annotate - [select for diffs], Thu Oct 12 01:30:50 2006 UTC (16 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.114: +8 -7 lines
Diff to previous 1.114 (colored)

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

Revision 1.114 / (download) - annotate - [select for diffs], Fri Sep 29 14:39:09 2006 UTC (16 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.113: +4 -2 lines
Diff to previous 1.113 (colored)

Coverity CID 3801: Plug memory leak (from Arnaud Lacombe)

Revision 1.107.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:49:09 2006 UTC (16 years, 4 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.107: +22 -76 lines
Diff to previous 1.107 (colored) next main 1.108 (colored)

sync with head

Revision 1.108.2.4 / (download) - annotate - [select for diffs], Sun Sep 3 15:23:55 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.108.2.3: +4 -60 lines
Diff to previous 1.108.2.3 (colored) to branchpoint 1.108 (colored) next main 1.109 (colored)

sync with head.

Revision 1.113 / (download) - annotate - [select for diffs], Sun Aug 27 04:58:40 2006 UTC (16 years, 5 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.112: +4 -60 lines
Diff to previous 1.112 (colored)

Use dk_lookup.

Revision 1.108.2.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:43:52 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.108.2.2: +9 -12 lines
Diff to previous 1.108.2.2 (colored) to branchpoint 1.108 (colored)

sync with head

Revision 1.112 / (download) - annotate - [select for diffs], Fri Jul 21 16:48:47 2006 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.111: +9 -12 lines
Diff to previous 1.111 (colored)

- Use the LWP cached credentials where sane.
- Minor cosmetic changes.

Revision 1.108.2.2 / (download) - annotate - [select for diffs], Mon Jun 26 12:50:37 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.108.2.1: +6 -3 lines
Diff to previous 1.108.2.1 (colored) to branchpoint 1.108 (colored)

sync with head.

Revision 1.104.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:02:11 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.104: +49 -39 lines
Diff to previous 1.104 (colored)

sync with head.

Revision 1.110.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 03:58:11 2006 UTC (16 years, 7 months ago) by chap
Branch: chap-midi
Changes since 1.110: +6 -3 lines
Diff to previous 1.110 (colored) next main 1.111 (colored)

Sync with head.

Revision 1.111 / (download) - annotate - [select for diffs], Mon Jun 12 22:02:45 2006 UTC (16 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base
Changes since 1.110: +6 -3 lines
Diff to previous 1.110 (colored)

don't allocate > 1K on the stack.

Revision 1.107.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:36:03 2006 UTC (16 years, 8 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.107.6.1: +15 -14 lines
Diff to previous 1.107.6.1 (colored) next main 1.108 (colored)

Sync with head.

Revision 1.108.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:07 2006 UTC (16 years, 8 months ago) by tron
Branch: peter-altq
Changes since 1.108: +15 -14 lines
Diff to previous 1.108 (colored) next main 1.109 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.108.2.1 / (download) - annotate - [select for diffs], Wed May 24 10:57:36 2006 UTC (16 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.108: +15 -14 lines
Diff to previous 1.108 (colored)

sync with head.

Revision 1.110 / (download) - annotate - [select for diffs], Sun May 14 21:42:26 2006 UTC (16 years, 8 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base
Branch point for: chap-midi
Changes since 1.109: +11 -10 lines
Diff to previous 1.109 (colored)

integrate kauth.

Revision 1.108.4.4 / (download) - annotate - [select for diffs], Fri May 12 23:06:36 2006 UTC (16 years, 8 months ago) by elad
Branch: elad-kernelauth
Changes since 1.108.4.3: +3 -3 lines
Diff to previous 1.108.4.3 (colored) to branchpoint 1.108 (colored) next main 1.109 (colored)

adapt to kauth kpi, include sys/kauth.h where needed..

Revision 1.108.4.3 / (download) - annotate - [select for diffs], Thu May 11 23:28:05 2006 UTC (16 years, 8 months ago) by elad
Branch: elad-kernelauth
Changes since 1.108.4.2: +7 -7 lines
Diff to previous 1.108.4.2 (colored) to branchpoint 1.108 (colored)

sync with head

Revision 1.108.4.2 / (download) - annotate - [select for diffs], Sat May 6 23:31:27 2006 UTC (16 years, 8 months ago) by christos
Branch: elad-kernelauth
Changes since 1.108.4.1: +3 -2 lines
Diff to previous 1.108.4.1 (colored) to branchpoint 1.108 (colored)

- 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.109 / (download) - annotate - [select for diffs], Mon Apr 24 21:35:57 2006 UTC (16 years, 9 months ago) by jld
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.108: +7 -7 lines
Diff to previous 1.108 (colored)

Make ccdioctl work without a process context; fixes xbdback-on-ccd.
Run by tech-kern on 2006-04-24; with approval and advice from wrstuden@.

Revision 1.107.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:38:45 2006 UTC (16 years, 9 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.107: +7 -6 lines
Diff to previous 1.107 (colored)

Sync with head.

Revision 1.108.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:44:48 2006 UTC (16 years, 10 months ago) by elad
Branch: elad-kernelauth
Changes since 1.108: +13 -13 lines
Diff to previous 1.108 (colored)

Adapt to kernel authorization KPI.

Revision 1.102.2.2 / (download) - annotate - [select for diffs], Mon Feb 20 15:26:49 2006 UTC (16 years, 11 months ago) by tron
Branch: netbsd-3
CVS Tags: 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
Changes since 1.102.2.1: +5 -4 lines
Diff to previous 1.102.2.1 (colored) to branchpoint 1.102 (colored) next main 1.103 (colored)

Pull up following revision(s) (requested by lukem in ticket #1178):
	sys/dev/ccd.c: revision 1.108
	sbin/ccdconfig/ccdconfig.c: revision 1.42
* The kernel's struct ccd_softc has extra structure members over the
  userland version; provide another ccd global variable (ccd_softc_elemsize)
  containing the kernel's size, and use that it ccdconfig(8) to convert the
  kernel's ccd_softc into userland versions.
  Fixes 'ccdconfig -g'.
* Use DISKUNIT() instead of home-grown cruft to determine the `N' of "ccdN".
  Fixes 'ccdconfig -g ccd1'.
* Use (void *) instead of (char *) in the calls to kvm_read().
XXX: ccd could be converted from nlist to sysctl.  "Someone else's yak shave".

Revision 1.107.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:02 2006 UTC (16 years, 11 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.107: +7 -6 lines
Diff to previous 1.107 (colored) next main 1.108 (colored)

sync with head.

Revision 1.108 / (download) - annotate - [select for diffs], Thu Feb 16 23:25:18 2006 UTC (16 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.107: +7 -6 lines
Diff to previous 1.107 (colored)

* The kernel's struct ccd_softc has extra structure members over the
  userland version; provide another ccd global variable (ccd_softc_elemsize)
  containing the kernel's size, and use that it ccdconfig(8) to convert the
  kernel's ccd_softc into userland versions.
  Fixes 'ccdconfig -g'.
* Use DISKUNIT() instead of home-grown cruft to determine the `N' of "ccdN".
  Fixes 'ccdconfig -g ccd1'.
* Use (void *) instead of (char *) in the calls to kvm_read().

XXX: ccd could be converted from nlist to sysctl.  "Someone else's yak shave".

Revision 1.107 / (download) - annotate - [select for diffs], Sun Dec 11 12:20:53 2005 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.106: +28 -24 lines
Diff to previous 1.106 (colored)

merge ktrace-lwp.

Revision 1.90.2.10 / (download) - annotate - [select for diffs], Thu Nov 10 14:03:00 2005 UTC (17 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.90.2.9: +12 -11 lines
Diff to previous 1.90.2.9 (colored) next main 1.91 (colored)

Sync with HEAD. Here we go again...

Revision 1.106 / (download) - annotate - [select for diffs], Sat Oct 15 17:29:11 2005 UTC (17 years, 3 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.105: +8 -8 lines
Diff to previous 1.105 (colored)

- 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.105 / (download) - annotate - [select for diffs], Sat Aug 20 12:01:04 2005 UTC (17 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.104: +5 -4 lines
Diff to previous 1.104 (colored)

use pseudo_disk_{init,attach,detach} where appropriate.

Revision 1.104 / (download) - annotate - [select for diffs], Sun May 22 15:54:46 2005 UTC (17 years, 8 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored)

No 0x in front of %p...

Revision 1.101.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:28:44 2005 UTC (17 years, 9 months ago) by kent
Branch: kent-audio2
Changes since 1.101: +4 -10 lines
Diff to previous 1.101 (colored) next main 1.102 (colored)

sync with -current

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Wed Apr 6 11:57:27 2005 UTC (17 years, 9 months ago) by tron
Branch: netbsd-3
CVS Tags: 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
Changes since 1.102: +3 -9 lines
Diff to previous 1.102 (colored)

Pull up revision 1.103 (requested by yamt in ticket #112):
introduce a function to drain bufq and use it where appropriate.

Revision 1.90.2.9 / (download) - annotate - [select for diffs], Fri Apr 1 14:29:37 2005 UTC (17 years, 10 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.90.2.8: +3 -9 lines
Diff to previous 1.90.2.8 (colored)

Sync with HEAD.

Revision 1.103 / (download) - annotate - [select for diffs], Thu Mar 31 11:28:53 2005 UTC (17 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.102: +3 -9 lines
Diff to previous 1.102 (colored)

introduce a function to drain bufq and use it where appropriate.

Revision 1.101.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:33:53 2005 UTC (17 years, 10 months ago) by yamt
Branch: yamt-km
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored) next main 1.102 (colored)

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

Revision 1.90.2.8 / (download) - annotate - [select for diffs], Fri Mar 4 16:40:53 2005 UTC (17 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.90.2.7: +3 -3 lines
Diff to previous 1.90.2.7 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.102 / (download) - annotate - [select for diffs], Sun Feb 27 00:26:58 2005 UTC (17 years, 11 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored)

nuke trailing whitespace

Revision 1.90.2.7 / (download) - annotate - [select for diffs], Tue Nov 2 07:51:19 2004 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.90.2.6: +26 -2 lines
Diff to previous 1.90.2.6 (colored)

Sync with HEAD.

Revision 1.101 / (download) - annotate - [select for diffs], Thu Oct 28 07:07:39 2004 UTC (18 years, 3 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.100: +3 -2 lines
Diff to previous 1.100 (colored)

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

Revision 1.100 / (download) - annotate - [select for diffs], Tue Oct 26 22:44:45 2004 UTC (18 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.99: +25 -2 lines
Diff to previous 1.99 (colored)

Implement the DIOCCACHESYNC ioctl; we simply pass it through to each
underlying component.

Revision 1.90.2.6 / (download) - annotate - [select for diffs], Fri Sep 24 10:53:27 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.90.2.5: +5 -5 lines
Diff to previous 1.90.2.5 (colored)

Sync with HEAD.

Revision 1.90.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:26:24 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.90.2.4: +27 -23 lines
Diff to previous 1.90.2.4 (colored)

Fix the sync with head I botched.

Revision 1.99 / (download) - annotate - [select for diffs], Sat Sep 18 16:40:11 2004 UTC (18 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.98: +5 -5 lines
Diff to previous 1.98 (colored)

change some members of struct buf from long to int.
ride on 2.0H.

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

Sync with HEAD.

Revision 1.90.2.3 / (download) - annotate - [select for diffs], Wed Aug 25 06:57:34 2004 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.90.2.2: +57 -111 lines
Diff to previous 1.90.2.2 (colored)

Sync with HEAD.

Revision 1.98 / (download) - annotate - [select for diffs], Mon Aug 23 05:38:15 2004 UTC (18 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.97: +2 -12 lines
Diff to previous 1.97 (colored)

Remove a comment that doesn't really make sense.

Revision 1.97 / (download) - annotate - [select for diffs], Mon Aug 23 04:38:42 2004 UTC (18 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.96: +57 -101 lines
Diff to previous 1.96 (colored)

Use ANSI function decls and more use of static.

Revision 1.90.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:44:53 2004 UTC (18 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.90.2.1: +49 -9 lines
Diff to previous 1.90.2.1 (colored)

Sync with HEAD

Revision 1.96 / (download) - annotate - [select for diffs], Wed Apr 21 18:40:37 2004 UTC (18 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored)

kill sprintf, use snprintf

Revision 1.95 / (download) - annotate - [select for diffs], Sun Jan 25 18:06:48 2004 UTC (19 years ago) by hannken
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.94: +4 -4 lines
Diff to previous 1.94 (colored)

Make VOP_STRATEGY(bp) a real VOP as discussed on tech-kern.

VOP_STRATEGY(bp) is replaced by one of two new functions:

- VOP_STRATEGY(vp, bp)  Call the strategy routine of vp for bp.
- DEV_STRATEGY(bp)      Call the d_strategy routine of bp->b_dev for bp.

DEV_STRATEGY(bp) is used only for block-to-block device situations.

Revision 1.94 / (download) - annotate - [select for diffs], Sat Jan 10 14:39:50 2004 UTC (19 years ago) by yamt
Branch: MAIN
Changes since 1.93: +4 -2 lines
Diff to previous 1.93 (colored)

store a i/o priority hint in struct buf for buffer queue discipline.

Revision 1.93 / (download) - annotate - [select for diffs], Sun Oct 26 23:42:57 2003 UTC (19 years, 3 months ago) by chs
Branch: MAIN
Changes since 1.92: +3 -3 lines
Diff to previous 1.92 (colored)

don't print an uninitialized variable.

Revision 1.92 / (download) - annotate - [select for diffs], Fri Oct 17 05:16:15 2003 UTC (19 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.91: +7 -4 lines
Diff to previous 1.91 (colored)

Add user flag CCDF_NOLABEL to prevent the on-disk label from being read
during CCDIOCSET.
Use this when creating a new ccd to ignore any existing disklabel
which is probably wrong.

Revision 1.91 / (download) - annotate - [select for diffs], Thu Aug 7 16:30:50 2003 UTC (19 years, 5 months ago) by agc
Branch: MAIN
Changes since 1.90: +38 -3 lines
Diff to previous 1.90 (colored)

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

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

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:25:59 2003 UTC (19 years, 7 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.90: +32 -28 lines
Diff to previous 1.90 (colored)

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

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

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

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

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

Bump the kernel rev up to 1.6V

Revision 1.88 / (download) - annotate - [select for diffs], Sat May 17 21:42:08 2003 UTC (19 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.87: +76 -56 lines
Diff to previous 1.87 (colored)

Use a buffer queue.  Primary advantage here is robustness in the face
of temporary resource shortages.

Revision 1.87 / (download) - annotate - [select for diffs], Sat May 17 16:11:52 2003 UTC (19 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.86: +24 -5 lines
Diff to previous 1.86 (colored)

Add DIOCKLABEL support.  Fixes PR kern/21605 (Luke Mewburn).

Revision 1.86 / (download) - annotate - [select for diffs], Sat May 10 23:12:43 2003 UTC (19 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.85: +3 -3 lines
Diff to previous 1.85 (colored)

Change bounds_check_with_label() to take a pointer to the disk structure,
rather than the label itself.  This paves the way for some future changes.

Revision 1.85 / (download) - annotate - [select for diffs], Fri May 2 08:45:26 2003 UTC (19 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored)

Change return type of readdisklabel() to const char *
I hope I've found all the correct places!

Revision 1.84 / (download) - annotate - [select for diffs], Fri Mar 21 23:11:21 2003 UTC (19 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.83: +4 -4 lines
Diff to previous 1.83 (colored)

Use 'void *' instead of 'caddr_t' in prototypes of VOP_IOCTL, VOP_FCNTL
and VOP_ADVLOCK, delete casts from callers (and some to copyin/out).

Revision 1.83 / (download) - annotate - [select for diffs], Tue Feb 25 20:35:33 2003 UTC (19 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.82: +3 -4 lines
Diff to previous 1.82 (colored)

Add a new BUF_INIT() macro which initializes b_dep and b_interlock, and
use it.  This fixes a few places where either b_dep or b_interlock were
not properly initialized.

Revision 1.82 / (download) - annotate - [select for diffs], Wed Feb 5 21:38:39 2003 UTC (19 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.81: +3 -2 lines
Diff to previous 1.81 (colored)

Make the buffer cache code MP-safe.

Revision 1.81 / (download) - annotate - [select for diffs], Sat Jan 25 23:09:58 2003 UTC (20 years ago) by kleink
Branch: MAIN
Changes since 1.80: +8 -6 lines
Diff to previous 1.80 (colored)

Fix further printf format warnings for DEBUG, in the wake of daddr_t
having changed.

Revision 1.71.2.9 / (download) - annotate - [select for diffs], Mon Nov 11 22:08:41 2002 UTC (20 years, 2 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.71.2.8: +4 -3 lines
Diff to previous 1.71.2.8 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored)

Catch up to -current

Revision 1.80 / (download) - annotate - [select for diffs], Fri Nov 1 11:31:55 2002 UTC (20 years, 3 months ago) by mrg
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.79: +5 -4 lines
Diff to previous 1.79 (colored)

implement separate read/write disk statistics:
	- disk_unbusy() gets a new parameter to tell the IO direction.
	- struct disk_sysctl gets 4 new members for read/write bytes/transfers.
	when processing hw.diskstats, add the read&write bytes/transfers for
	the old combined stats to attempt to keep backwards compatibility.

unfortunately, due to multiple bugs, this will cause new kernels and old
vmstat/iostat/systat programs to fail.  however, the next time this is
change it will not fail again.

this is just the kernel portion.

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

merge kqueue branch into -current

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

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

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

Revision 1.72.2.6 / (download) - annotate - [select for diffs], Thu Oct 10 18:38:18 2002 UTC (20 years, 3 months ago) by jdolecek
Branch: kqueue
Changes since 1.72.2.5: +20 -3 lines
Diff to previous 1.72.2.5 (colored) next main 1.73 (colored)

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

Revision 1.71.2.8 / (download) - annotate - [select for diffs], Tue Sep 17 21:19:17 2002 UTC (20 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.71.2.7: +20 -3 lines
Diff to previous 1.71.2.7 (colored) to branchpoint 1.71 (colored)

Catch up to -current.

Revision 1.78 / (download) - annotate - [select for diffs], Fri Sep 6 13:18:43 2002 UTC (20 years, 4 months ago) by gehenna
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base
Changes since 1.77: +20 -3 lines
Diff to previous 1.77 (colored)

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.71.2.7 / (download) - annotate - [select for diffs], Mon Jun 24 22:09:44 2002 UTC (20 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.71.2.6: +4 -4 lines
Diff to previous 1.71.2.6 (colored) to branchpoint 1.71 (colored)

Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).

Revision 1.72.2.5 / (download) - annotate - [select for diffs], Sun Jun 23 17:44:59 2002 UTC (20 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.72.2.4: +4 -4 lines
Diff to previous 1.72.2.4 (colored)

catch up with -current on kqueue branch

Revision 1.76.6.2 / (download) - annotate - [select for diffs], Thu Jun 20 16:31:22 2002 UTC (20 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.76.6.1: +4 -4 lines
Diff to previous 1.76.6.1 (colored) to branchpoint 1.76 (colored) next main 1.77 (colored)

catch up with -current.

Revision 1.71.2.6 / (download) - annotate - [select for diffs], Thu Jun 20 03:43:23 2002 UTC (20 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.71.2.5: +4 -4 lines
Diff to previous 1.71.2.5 (colored) to branchpoint 1.71 (colored)

Catch up to -current.

Revision 1.77 / (download) - annotate - [select for diffs], Sat Jun 1 23:50:57 2002 UTC (20 years, 8 months ago) by lukem
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored)

SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field).  whilst it's O(n),
  this mirrors the functionality of SLIST_REMOVE() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
  this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups

Revision 1.76.6.1 / (download) - annotate - [select for diffs], Thu May 16 04:47:32 2002 UTC (20 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.76: +20 -3 lines
Diff to previous 1.76 (colored)

Add the block/character device switches.

Revision 1.71.2.5 / (download) - annotate - [select for diffs], Mon Apr 1 07:45:02 2002 UTC (20 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.71.2.4: +3 -3 lines
Diff to previous 1.71.2.4 (colored) to branchpoint 1.71 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.72.2.4 / (download) - annotate - [select for diffs], Sat Mar 16 16:00:47 2002 UTC (20 years, 10 months ago) by jdolecek
Branch: kqueue
Changes since 1.72.2.3: +3 -3 lines
Diff to previous 1.72.2.3 (colored)

Catch up with -current.

Revision 1.76 / (download) - annotate - [select for diffs], Fri Mar 8 20:48:37 2002 UTC (20 years, 10 months ago) by thorpej
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, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored)

Pool deals fairly well with physical memory shortage, but it doesn't
deal with shortages of the VM maps where the backing pages are mapped
(usually kmem_map).  Try to deal with this:

* Group all information about the backend allocator for a pool in a
  separate structure.  The pool references this structure, rather than
  the individual fields.
* Change the pool_init() API accordingly, and adjust all callers.
* Link all pools using the same backend allocator on a list.
* The backend allocator is responsible for waiting for physical memory
  to become available, but will still fail if it cannot callocate KVA
  space for the pages.  If this happens, carefully drain all pools using
  the same backend allocator, so that some KVA space can be freed.
* Change pool_reclaim() to indicate if it actually succeeded in freeing
  some pages, and use that information to make draining easier and more
  efficient.
* Get rid of PR_URGENT.  There was only one use of it, and it could be
  dealt with by the caller.

From art@openbsd.org.

Revision 1.71.2.4 / (download) - annotate - [select for diffs], Thu Feb 28 04:13:10 2002 UTC (20 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.71.2.3: +5 -6 lines
Diff to previous 1.71.2.3 (colored) to branchpoint 1.71 (colored)

Catch up to -current.

Revision 1.72.2.3 / (download) - annotate - [select for diffs], Mon Feb 11 20:09:37 2002 UTC (20 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.72.2.2: +5 -6 lines
Diff to previous 1.72.2.2 (colored)

Sync w/ -current.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Jan 13 19:28:06 2002 UTC (21 years ago) by tsutsui
Branch: MAIN
CVS Tags: ifpoll-base
Changes since 1.74: +5 -6 lines
Diff to previous 1.74 (colored)

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

Revision 1.72.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:52:45 2002 UTC (21 years ago) by thorpej
Branch: kqueue
Changes since 1.72.2.1: +4 -1 lines
Diff to previous 1.72.2.1 (colored)

Sync kqueue branch with -current.

Revision 1.71.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:13:40 2001 UTC (21 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.71.2.2: +4 -1 lines
Diff to previous 1.71.2.2 (colored) to branchpoint 1.71 (colored)

Catch up to -current.

Revision 1.74 / (download) - annotate - [select for diffs], Tue Nov 13 05:32:49 2001 UTC (21 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.73: +4 -1 lines
Diff to previous 1.73 (colored)

add RCSIDs

Revision 1.73.2.3 / (download) - annotate - [select for diffs], Mon Oct 1 12:44:10 2001 UTC (21 years, 4 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.73.2.2: +3 -2 lines
Diff to previous 1.73.2.2 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored)

Catch up with -current.

Revision 1.73.2.2 / (download) - annotate - [select for diffs], Wed Sep 26 15:28:09 2001 UTC (21 years, 4 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.73.2.1: +53 -29 lines
Diff to previous 1.73.2.1 (colored) to branchpoint 1.73 (colored)

* 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.73.2.1 / (download) - annotate - [select for diffs], Fri Sep 7 04:45:22 2001 UTC (21 years, 4 months ago) by thorpej
Branch: thorpej-devvp
Changes since 1.73: +58 -69 lines
Diff to previous 1.73 (colored)

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

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

Revision 1.72.2.1 / (download) - annotate - [select for diffs], Sat Aug 25 06:16:08 2001 UTC (21 years, 5 months ago) by thorpej
Branch: kqueue
Changes since 1.72: +6 -1 lines
Diff to previous 1.72 (colored)

Merge Aug 24 -current into the kqueue branch.

Revision 1.71.2.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:09:02 2001 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.71.2.1: +12 -7 lines
Diff to previous 1.71.2.1 (colored) to branchpoint 1.71 (colored)

Catch up with -current.

Revision 1.69.4.2 / (download) - annotate - [select for diffs], Thu Aug 16 16:10:53 2001 UTC (21 years, 5 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002
Changes since 1.69.4.1: +6 -1 lines
Diff to previous 1.69.4.1 (colored) to branchpoint 1.69 (colored) next main 1.70 (colored)

Pullup [jdolecek]:

sys/dev/ccd.c                                   1.73
sys/dev/ccdvar.h                                1.20

  Provide hard limit on the number of concatenated disks, and bounds
  check against that limit.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Aug 5 11:20:13 2001 UTC (21 years, 6 months ago) by jdolecek
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
Changes since 1.72: +6 -1 lines
Diff to previous 1.72 (colored)

change ccio_ndisks and sc_nccdisks of struct ccd_ioctl from int to u_int
introduce hard limit on number of disks which can be contcatenated togetger,
CCD_MAXNDISKS

Revision 1.72 / (download) - annotate - [select for diffs], Sat Jul 7 17:04:01 2001 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Branch point for: kqueue
Changes since 1.71: +7 -7 lines
Diff to previous 1.71 (colored)

bcopy -> memcpy
bzero -> memset

Revision 1.69.4.1 / (download) - annotate - [select for diffs], Tue May 1 12:27:03 2001 UTC (21 years, 9 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH001
Changes since 1.69: +53 -3 lines
Diff to previous 1.69 (colored)

Pull up revisions 1.70-1.71 (requested by fvdl):
  Increase the number of BSD disklabel partitions on i386 to 16.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:33 2001 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.63.2.2 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:15 2001 UTC (22 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.63.2.1: +53 -3 lines
Diff to previous 1.63.2.1 (colored) next main 1.64 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.71 / (download) - annotate - [select for diffs], Mon Jan 8 02:03:46 2001 UTC (22 years ago) by fvdl
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

Return error in the case of using ODIOCGDINFO or ODIOCGDEFLABEL when
the number of partitions is > OLDMAXPARTITIONS. This is better
than silently truncating the label (don't want to silently throw
away partitions when using an old disklabel binary on a label with
> 8 partitions). From Enami Tsugutomo.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Jan 7 18:09:01 2001 UTC (22 years ago) by fvdl
Branch: MAIN
Changes since 1.69: +53 -3 lines
Diff to previous 1.69 (colored)

Adapt all disk devices in MI directories to handle ODIOC* calls
for ports that have bumped MAXPARTITIONS (and thus define
__HAVE_OLD_DISKLABEL).

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

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.69 / (download) - annotate - [select for diffs], Wed Apr 5 04:03:20 2000 UTC (22 years, 10 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.68: +12 -1 lines
Diff to previous 1.68 (colored)

Introduce new filesystem type FS_CCD so that an operator can mark the
ccd component partition.  Note that the ccd driver still allows partitions
of any types as components since an on-disk BSD disklabel isn't available
on some port.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Mar 30 12:45:27 2000 UTC (22 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.67: +26 -26 lines
Diff to previous 1.67 (colored)

Remove register declarations.

Revision 1.67 / (download) - annotate - [select for diffs], Thu Mar 16 03:54:01 2000 UTC (22 years, 10 months ago) by enami
Branch: MAIN
Changes since 1.66: +17 -17 lines
Diff to previous 1.66 (colored)

On initialization failure, free all the storage allocated to store
component pathnames rather than the last one.

Revision 1.66 / (download) - annotate - [select for diffs], Tue Feb 8 12:56:00 2000 UTC (22 years, 11 months ago) by enami
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.65: +1 -3 lines
Diff to previous 1.65 (colored)

Since we now only allocate this one, no longer necessary to check and free().

Revision 1.63.6.2 / (download) - annotate - [select for diffs], Mon Dec 27 18:34:34 1999 UTC (23 years, 1 month ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.63.6.1: +3 -3 lines
Diff to previous 1.63.6.1 (colored) next main 1.64 (colored)

Pull up to last week's -current.

Revision 1.63.6.1 / (download) - annotate - [select for diffs], Tue Dec 21 23:19:52 1999 UTC (23 years, 1 month ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.63: +54 -16 lines
Diff to previous 1.63 (colored)

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.65 / (download) - annotate - [select for diffs], Mon Nov 15 18:49:08 1999 UTC (23 years, 2 months ago) by fvdl
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.64: +2 -1 lines
Diff to previous 1.64 (colored)

Add Kirk McKusick's soft updates code to the trunk. Not enabled by
default, as the copyright on the main file (ffs_softdep.c) is such
that is has been put into gnusrc. options SOFTDEP will pull this
in. This code also contains the trickle syncer.

Bump version number to 1.4O

Revision 1.63.4.2 / (download) - annotate - [select for diffs], Mon Nov 15 00:40:11 1999 UTC (23 years, 2 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.63.4.1: +2 -3 lines
Diff to previous 1.63.4.1 (colored) next main 1.64 (colored)

Sync with -current

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Fri Nov 5 07:39:39 1999 UTC (23 years, 3 months ago) by cgd
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.62: +2 -3 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

pull up rev 1.64 from trunk (requested by chs):
  Fix a dobule-biodone() panic when ccd component buffers have errors.

Revision 1.64 / (download) - annotate - [select for diffs], Wed Nov 3 16:04:03 1999 UTC (23 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.63: +2 -3 lines
Diff to previous 1.63 (colored)

from jason:
avoid biodone()ing the original buf twice when a component buf
gets an error.  fixes PR 8704.

Revision 1.63.4.1 / (download) - annotate - [select for diffs], Tue Oct 19 12:49:59 1999 UTC (23 years, 3 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.63: +2 -1 lines
Diff to previous 1.63 (colored)

Bring in Kirk McKusick's FFS softdep code on a branch.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Aug 11 02:41:02 1999 UTC (23 years, 5 months ago) by thorpej
Branch: MAIN
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.62: +14 -13 lines
Diff to previous 1.62 (colored)

We really only need *one* componenet buffer pool...

Revision 1.62 / (download) - annotate - [select for diffs], Thu Mar 4 02:38:19 1999 UTC (23 years, 11 months ago) by mjacob
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc2-base, chs-ubc2
Branch point for: netbsd-1-4
Changes since 1.61: +5 -4 lines
Diff to previous 1.61 (colored)

a kindler gentler fix

Revision 1.61 / (download) - annotate - [select for diffs], Thu Mar 4 02:20:13 1999 UTC (23 years, 11 months ago) by mjacob
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

adjust format args for compiler changes

Revision 1.60 / (download) - annotate - [select for diffs], Fri Feb 12 00:48:07 1999 UTC (23 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.59: +5 -5 lines
Diff to previous 1.59 (colored)

Fix some printf format problems on Alpha.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Jan 21 00:35:15 1999 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.58: +13 -9 lines
Diff to previous 1.58 (colored)

Fix a st00p1d bug I introduced in rev 1.57, which would cause any activity
on non-0 CCD units to crash the system.

Revision 1.58 / (download) - annotate - [select for diffs], Tue Jan 12 12:49:53 1999 UTC (24 years ago) by christos
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

Make this compile again with -DDEBUG

Revision 1.57 / (download) - annotate - [select for diffs], Tue Jan 12 00:21:47 1999 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.56: +65 -132 lines
Diff to previous 1.56 (colored)

Whole lotta cleanup wrt. how configuration data is stored internally, and
just lockmgr(), not our home-grown locking functions.

Revision 1.56 / (download) - annotate - [select for diffs], Fri Nov 13 01:00:15 1998 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.55: +28 -4 lines
Diff to previous 1.55 (colored)

Handle the case where ccdbuffer() fails due to memory shortage.  Build
a fifo of component buffers, and free them if ccdbuffer() fails.  Once
all component buffers are build, run through the fifo and fire off the
requests to the components.

Revision 1.55 / (download) - annotate - [select for diffs], Fri Nov 13 00:35:57 1998 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.54: +15 -15 lines
Diff to previous 1.54 (colored)

Simplify calling of ccdbuffer() now that the mirroring code is nuked.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Nov 13 00:31:02 1998 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.53: +5 -1 lines
Diff to previous 1.53 (colored)

Return EINVAL if invalid flags are passed.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Nov 13 00:26:19 1998 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.52: +19 -106 lines
Diff to previous 1.52 (colored)

Nuke the mirroring code.  RAIDframe is about to go in, and is a much
better mirroring solution.

The ccd driver will stay, even in the presence of RAIDframe, for applications
where just RAID-0 is needed (much smaller code footprint).

Revision 1.52 / (download) - annotate - [select for diffs], Thu Nov 12 22:39:57 1998 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

Must use PR_NOWAIT when allocating component buffers.

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Sat Aug 8 03:06:46 1998 UTC (24 years, 5 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.50: +14 -64 lines
Diff to previous 1.50 (colored) next main 1.51 (colored)

Revert cdevsw mmap routines to return int.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Jul 31 01:23:56 1998 UTC (24 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.50: +14 -64 lines
Diff to previous 1.50 (colored)

Use the pool allocator for component buffer headers.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Jul 9 20:56:12 1998 UTC (24 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.49: +5 -5 lines
Diff to previous 1.49 (colored)

Fix int32_t overflow with large serially concatenated components,
from Noriyuki SODA <soda@sra.co.jp>, PR #5729.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Mar 1 07:15:39 1998 UTC (24 years, 11 months ago) by ross
Branch: MAIN
Changes since 1.48: +5 -5 lines
Diff to previous 1.48 (colored)

Sweep up some miscellaneous leftover lite2 integration shrapnel.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Feb 22 07:14:30 1998 UTC (24 years, 11 months ago) by enami
Branch: MAIN
Changes since 1.47: +4 -5 lines
Diff to previous 1.47 (colored)

Fix message printed in case (b) in last commit; what actually shouldn't
exceeds is not a size of partition but end of partition.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Feb 22 06:50:08 1998 UTC (24 years, 11 months ago) by enami
Branch: MAIN
Changes since 1.46: +27 -1 lines
Diff to previous 1.46 (colored)

Check disklabel just read from disk and warn if:
	(a) total sector size is different from the size of ccd, or
	(b) size of a partition exceeds the size of ccd.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Feb 6 08:13:07 1998 UTC (25 years ago) by thorpej
Branch: MAIN
Changes since 1.45: +6 -17 lines
Diff to previous 1.45 (colored)

Allow a ccd component to be on any partition type.

Revision 1.42.4.2 / (download) - annotate - [select for diffs], Tue Oct 14 10:22:06 1997 UTC (25 years, 3 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.42.4.1: +33 -15 lines
Diff to previous 1.42.4.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Oct 9 08:11:07 1997 UTC (25 years, 3 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-base
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

Fix tipo inherited from old version of TNF copyright template.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Oct 8 23:06:59 1997 UTC (25 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.43: +31 -13 lines
Diff to previous 1.43 (colored)

Implement DIOCGDEFLABEL.

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Sat Aug 23 07:12:47 1997 UTC (25 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.42: +7 -7 lines
Diff to previous 1.42 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.43 / (download) - annotate - [select for diffs], Mon Aug 4 10:00:11 1997 UTC (25 years, 6 months ago) by fair
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal
Changes since 1.42: +7 -7 lines
Diff to previous 1.42 (colored)

%x -> 0x%x

Revision 1.42 / (download) - annotate - [select for diffs], Thu Jun 26 16:28:34 1997 UTC (25 years, 7 months ago) by kleink
Branch: MAIN
CVS Tags: marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.41: +5 -4 lines
Diff to previous 1.41 (colored)

Leftover from last commit: require us to be initialized when a DIOCGDINFO
ioctl(2) is issued; the uninitialized disklabel pointer might get dereferenced
otherwise.

Revision 1.41 / (download) - annotate - [select for diffs], Thu Jun 26 04:25:50 1997 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.40: +23 -27 lines
Diff to previous 1.40 (colored)

In ccdioctl(), consolidate checks for "open for writes" and "initialized".

Revision 1.40 / (download) - annotate - [select for diffs], Mon Jun 23 23:59:53 1997 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.39: +16 -8 lines
Diff to previous 1.39 (colored)

Two changes to ccdsize():
- If the partition was previously open, don't do the open/close steps.
  (Sync with other disk drivers.)
- foosize()'s return value is in DEV_BSIZE units; adjust the size obtained
  from the disklabel accordingly.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Mar 12 22:31:37 1997 UTC (25 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.38: +2 -6 lines
Diff to previous 1.38 (colored)

Remove bogus use of splhigh(), and apparently unneeded bzero().

Revision 1.38 / (download) - annotate - [select for diffs], Thu Jan 30 04:00:52 1997 UTC (26 years ago) by thorpej
Branch: MAIN
CVS Tags: mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.37: +67 -10 lines
Diff to previous 1.37 (colored)

A performance optimization, inspired by a conversation with Thor Simon:

	- Keep a freelist of component buffer headers, defaulting
	  to 8 headers per component (tunable with the CCDNBUF
	  kernel compile option).
	- When allocating a component buffer, try to pull a header
	  off the freelist first, falling back on MALLOC() if the
	  freelist is empty.  Use MALLOC() rather than malloc(),
	  because it will attempt to short-cut the allocation before
	  actually making a full-blown malloc() call.
	- Keep statistics on how many component buffer headers have
	  been allocated and how many of those allocations have
	  resulted in freelist misses.

With these changes, I observed measurable decreases in system and
wall clock time on operations on an 8G ccd, as well as a measurable
drop in the time spent in ccdbuffer() (measured with kernel profiling).

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jan 30 03:32:56 1997 UTC (26 years ago) by thorpej
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Fix OBOB in ccdopen() partition range check.
From Klaus Klein <kleink@layla.inka.de>, PR #3161.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Dec 18 19:22:46 1996 UTC (26 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-setroot
Changes since 1.35: +8 -5 lines
Diff to previous 1.35 (colored)

Compute the componet number properly so that error reporting is somewhat
meaningful.  Bug noticed by Marshall Midden <m4@nts.umn.edu>.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Oct 13 01:37:06 1996 UTC (26 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.34: +35 -35 lines
Diff to previous 1.34 (colored)

backout kprintf changes

Revision 1.34 / (download) - annotate - [select for diffs], Thu Oct 10 22:25:07 1996 UTC (26 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.33: +38 -38 lines
Diff to previous 1.33 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.33 / (download) - annotate - [select for diffs], Sun May 5 04:21:14 1996 UTC (26 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

Fix bogus return value in ccdopen(); it failed to indicate an error
condition if:
	- ccd was not initialized
	- partition did not exist

Revision 1.32 / (download) - annotate - [select for diffs], Mon Apr 22 01:26:39 1996 UTC (26 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.31: +1 -2 lines
Diff to previous 1.31 (colored)

remove sys/cpu.h

Revision 1.31 / (download) - annotate - [select for diffs], Sat Mar 30 23:05:54 1996 UTC (26 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

Remove dependencies to dev_conf.h and the file itself.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Mar 24 01:26:57 1996 UTC (26 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored)

%d -> %ld in a few places...

Revision 1.29 / (download) - annotate - [select for diffs], Thu Mar 7 15:00:11 1996 UTC (26 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.28: +45 -53 lines
Diff to previous 1.28 (colored)

prototypes for ccd audio and ncr5380

Revision 1.28 / (download) - annotate - [select for diffs], Wed Feb 28 01:08:28 1996 UTC (26 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.27: +22 -18 lines
Diff to previous 1.27 (colored)

Copyright assigned to The NetBSD Foundation.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Feb 11 18:04:01 1996 UTC (26 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.26: +8 -5 lines
Diff to previous 1.26 (colored)

Avoid deref'ing a bad pointer in ccdopen().  This could happen if
any partition other than RAW_PART is opened before configuring the
ccd.  Bug pointed out by Matthew Green.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Feb 10 22:27:22 1996 UTC (26 years, 11 months ago) by hpeyerl
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

detatch this spelling mistake from this source file.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Feb 6 18:15:19 1996 UTC (27 years ago) by thorpej
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Fix typo, from Thorsten Frueauf <frueauf@ira.uka.de>.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Feb 1 20:47:13 1996 UTC (27 years ago) by thorpej
Branch: MAIN
Changes since 1.23: +126 -33 lines
Diff to previous 1.23 (colored)

Add experimental data mirroring support, derived from code written by
Satoshi Asami and Nisha Talagala.  For details on using data mirroring,
see the ccd(4) manual page.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Jan 7 22:03:28 1996 UTC (27 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.22: +52 -89 lines
Diff to previous 1.22 (colored)

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.22 / (download) - annotate - [select for diffs], Fri Dec 8 19:13:26 1995 UTC (27 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.21: +9 -2 lines
Diff to previous 1.21 (colored)

When unconfiguring a ccd, only free as many interleave indices as
were allocated, which may not be the same as the number of components
in the ccd.  From Don Lewis <gdonl@gv.ssi1.com>.  Fixes PR #1820.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Nov 6 19:58:01 1995 UTC (27 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +7 -3 lines
Diff to previous 1.20 (colored)

Fix a race condition where if a process is asleep waiting on an
exclusive lock of a ccd device while another process is unconfiguring
that same device, the first process would never awaken (unless interrupted).

Revision 1.18.2.2 / (download) - annotate - [select for diffs], Fri Nov 3 02:40:33 1995 UTC (27 years, 3 months ago) by thorpej
Branch: netbsd-1-1
CVS Tags: netbsd-1-1-RELEASE, netbsd-1-1-PATCH001
Changes since 1.18.2.1: +7 -3 lines
Diff to previous 1.18.2.1 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

Update from trunk; don't translate block number if part != RAW_PART.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Nov 3 02:35:54 1995 UTC (27 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.19: +7 -3 lines
Diff to previous 1.19 (colored)

In ccdstart(), only translate the block number from partition-relative
to absolute if part != RAW_PART.

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Thu Oct 12 21:30:16 1995 UTC (27 years, 3 months ago) by thorpej
Branch: netbsd-1-1
Changes since 1.18: +8 -7 lines
Diff to previous 1.18 (colored)

Update from trunk: Fix bad pointer deref, memory leak, and geometry
calculation, pointed out by Jochen Pohl in PR #1588.  Change the interleave
index to an array of ints rather than an array of chars to avoid losing in
the event one has more than 127 components.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Oct 12 21:28:32 1995 UTC (27 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.18: +8 -7 lines
Diff to previous 1.18 (colored)

Fix bad pointer deref, memory leak, and geometry calculation, pointed
out by Jochen Pohl in PR #1588.  Change the interleave index to an
array of ints rather than an array of chars to avoid losing in the event
one has more than 127 components.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Oct 9 05:37:57 1995 UTC (27 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-1-base
Branch point for: netbsd-1-1
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Batting 1.000: fix a potential panic situation in ccdioctl() that can occur
if ccdinit() fails.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Oct 9 05:21:09 1995 UTC (27 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.16: +7 -4 lines
Diff to previous 1.16 (colored)

Fix up a couple of comments.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Oct 9 01:45:34 1995 UTC (27 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.15: +4 -7 lines
Diff to previous 1.15 (colored)

Add the partition offset to the block number in ccdstart() as opposed
to ccdstrategy(), and do it in a way that doesn't corrupt the block number
for residuals.  (What was I _thinking_?!)

Revision 1.15 / (download) - annotate - [select for diffs], Mon Oct 9 00:46:45 1995 UTC (27 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.14: +93 -15 lines
Diff to previous 1.14 (colored)

Implement a simple locking mechanism and use it, for sanity's sake.
In ccdopen(), don't update the disklabel if any partition is already open.
Prevents race bewteen ccdstrategy() and ccdgetdisklabel().

Revision 1.14 / (download) - annotate - [select for diffs], Wed Sep 6 04:15:59 1995 UTC (27 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Fix misplaced #ifdef.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Aug 29 23:13:44 1995 UTC (27 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.12: +16 -1 lines
Diff to previous 1.12 (colored)

Wrap dk stats stuff in `#ifdef WORKING_DISK_STATISTICS'.  Takes care
of PR #1388 until such time as dk stats works on all ports.  XXX !!

Revision 1.12 / (download) - annotate - [select for diffs], Mon Aug 21 18:25:52 1995 UTC (27 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Fix typo, pointed out by cross@va.pubnix.com (Chris P. Ross).

Revision 1.11 / (download) - annotate - [select for diffs], Thu Aug 17 16:31:30 1995 UTC (27 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.10: +794 -235 lines
Diff to previous 1.10 (colored)

New version of ccd.  Allows dynamic run-time configuration and
unconfiguration and supports disklabels.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jul 4 07:18:26 1995 UTC (27 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored)

Make each disk and tape driver define its own read and write functions.
Deprecate rawread() and rawwrite() completely.  Remove d_strategy from cdevsw to
force the abstraction barrier.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jun 26 05:34:44 1995 UTC (27 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.8: +10 -3 lines
Diff to previous 1.8 (colored)

make dump stubs consistent

Revision 1.8 / (download) - annotate - [select for diffs], Thu Mar 9 02:20:34 1995 UTC (27 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.7: +1 -1 lines
Diff to previous 1.7 (colored)

spaces -> tab

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 2 06:40:38 1995 UTC (27 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.6: +37 -7 lines
Diff to previous 1.6 (colored)

from jason thorpe: add ccdclose(), make it work with the MI scsi code,
and add knowledge of i386 disk device names (XXX).

Revision 1.6 / (download) - annotate - [select for diffs], Thu Mar 2 06:38:11 1995 UTC (27 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.5: +56 -44 lines
Diff to previous 1.5 (colored)

don't overload buffer structs; allocate and use a 'super-struct' instead.

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

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

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Sun Aug 14 07:41:21 1994 UTC (28 years, 5 months ago) by mycroft
Branch: netbsd-1-0
CVS Tags: 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
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

update from trunk

Revision 1.4 / (download) - annotate - [select for diffs], Sun Aug 14 07:41:08 1994 UTC (28 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

ccdevsw --> cdevsw

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jul 2 06:03:47 1994 UTC (28 years, 7 months ago) by hpeyerl
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.2: +170 -72 lines
Diff to previous 1.2 (colored)

These should have been the 4.4Lite versions. duh.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 29 06:31:30 1994 UTC (28 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.1: +5 -3 lines
Diff to previous 1.1 (colored)

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

Revision 1.1 / (download) - annotate - [select for diffs], Fri Jun 24 14:11:02 1994 UTC (28 years, 7 months ago) by hpeyerl
Branch: MAIN

Concat disk driver moved from hp300/dev to here.

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>