The NetBSD Project

CVS log for src/sys/kern/kern_drvctl.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.51 / (download) - annotate - [select for diffs], Mon Mar 28 12:33:22 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.50: +4 -9 lines
Diff to previous 1.50 (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.50 / (download) - annotate - [select for diffs], Sat Feb 12 03:24:36 2022 UTC (11 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.49: +11 -10 lines
Diff to previous 1.49 (colored)

sys: Fix various abuse of struct device internals.

Will help to make struct device opaque later.

Revision 1.45.6.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:33 2021 UTC (19 months, 1 week ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.45: +48 -16 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

Sync w/ HEAD.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Jun 16 00:19:46 2021 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.48: +11 -7 lines
Diff to previous 1.48 (colored)

drvctl(4): If no ifattr is specified on rescan, rescan all of them.

No longer must you remember the magic `-a ata_hl' incantation when
you deign to `drvctl -r atabusN'.  It didn't actually do anything
anyway: atabus_rescan always rescans all ifattrs; same with
uhub_rescan and many others.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Jun 12 12:14:03 2021 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.47: +22 -7 lines
Diff to previous 1.47 (colored)

drvctl(4): Hold a deviter while issuing config_detach.

Otherwise another concurrent detach -- e.g., from concurrent drvctl
or from USB port disconnection -- can pull the device_t out from
under us.

XXX Need to do this for _every_ operation config_* operation on a
device_t; device_find_by_xname is just fundamentally broken because a
concurrent detach can pull the device_t rug out from under you.

We really need another mechanism for holding a weak reference to a
device, and temporarily getting a strong reference to it; abusing
deviter is a bit of a kludge, and doesn't work very well because it
doesn't properly trigger garbage collection of devices detached while
other concurrent deviters are pending.

Revision 1.47 / (download) - annotate - [select for diffs], Sat Jun 12 12:12:11 2021 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.46: +10 -2 lines
Diff to previous 1.46 (colored)

autoconf(9), drvctl(4): Sprinkle kernel lock assertions.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Jun 12 12:11:59 2021 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.45: +11 -6 lines
Diff to previous 1.45 (colored)

drvctl(4): Take the kernel lock around entry into autoconf(9).

Can make this finer-grained once the rest of autoconf(9) is in good
enough shape to support it.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jun 11 02:28:01 2020 UTC (2 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Changes since 1.44: +6 -6 lines
Diff to previous 1.44 (colored)

Update for proplib(3) API changes.

Revision 1.43.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:03 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.43: +2 -3 lines
Diff to previous 1.43 (colored) next main 1.44 (colored)

Sync with HEAD

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:55 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.43: +2 -3 lines
Diff to previous 1.43 (colored) next main 1.44 (colored)

Ssync with HEAD

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Sun Sep 23 17:33:15 2018 UTC (4 years, 4 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.42: +2 -3 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

Pull up following revision(s) (requested by mrg in ticket #1025):

	sys/kern/subr_autoconf.c: revision 1.263
	sys/kern/kern_drvctl.c: revision 1.44
	sys/sys/device.h: revision 1.156
	sys/sys/systm.h: revision 1.278

- move export for devmon_insert_vec into sys/device.h.
- export root_is_mounted for future USB RB_ASKNAME hack.
- make some things in subr_autoconf.c static
- move device_printf() prototype out from the middle of two sets of
  aprint_*() prototypes.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Sep 18 01:25:09 2018 UTC (4 years, 4 months ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, 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.43: +2 -3 lines
Diff to previous 1.43 (colored)

- move export for devmon_insert_vec into sys/device.h.
- export root_is_mounted for future USB RB_ASKNAME hack.
- make some things in subr_autoconf.c static
- move device_printf() prototype out from the middle of two sets of
  aprint_*() prototypes.

Revision 1.32.12.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:44 2017 UTC (5 years, 1 month ago) by jdolecek
Branch: tls-maxphys
Changes since 1.32.12.3: +83 -11 lines
Diff to previous 1.32.12.3 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored)

update from HEAD

Revision 1.43 / (download) - annotate - [select for diffs], Thu Nov 30 20:25:55 2017 UTC (5 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.42: +3 -2 lines
Diff to previous 1.42 (colored)

add fo_name so we can identify the fileops in a simple way.

Revision 1.36.4.3 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:07 2017 UTC (5 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.36.4.2: +2 -8 lines
Diff to previous 1.36.4.2 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

Sync with HEAD

Revision 1.42 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:13 2017 UTC (5 years, 8 months ago) by chs
Branch: MAIN
CVS Tags: 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.41: +2 -8 lines
Diff to previous 1.41 (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.41.8.2 / (download) - annotate - [select for diffs], Sat Apr 29 11:12:15 2017 UTC (5 years, 9 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.41.8.1: +2 -3 lines
Diff to previous 1.41.8.1 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored)

Remove more unnecessary #include for sys/localcount.h

Revision 1.41.8.1 / (download) - annotate - [select for diffs], Thu Apr 27 05:36:37 2017 UTC (5 years, 9 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.41: +4 -2 lines
Diff to previous 1.41 (colored)

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

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

Revision 1.41.2.3 / (download) - annotate - [select for diffs], Tue Jul 26 05:54:40 2016 UTC (6 years, 6 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.41.2.2: +3 -3 lines
Diff to previous 1.41.2.2 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored)

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

Revision 1.41.2.2 / (download) - annotate - [select for diffs], Tue Jul 19 06:27:00 2016 UTC (6 years, 6 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.41.2.1: +3 -9 lines
Diff to previous 1.41.2.1 (colored) to branchpoint 1.41 (colored)

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

As suggested by riastradh@

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Mon Jul 18 03:50:00 2016 UTC (6 years, 6 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.41: +10 -2 lines
Diff to previous 1.41 (colored)

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

Revision 1.36.4.2 / (download) - annotate - [select for diffs], Sun Dec 27 12:10:05 2015 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.36.4.1: +82 -5 lines
Diff to previous 1.36.4.1 (colored) to branchpoint 1.36 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.41 / (download) - annotate - [select for diffs], Mon Dec 7 20:01:43 2015 UTC (7 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2, pgoyette-localcount
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

don't release mutexes you did not enter? Please develop with LOCKDEBUG on!

Revision 1.40 / (download) - annotate - [select for diffs], Mon Dec 7 11:38:46 2015 UTC (7 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.39: +82 -5 lines
Diff to previous 1.39 (colored)

Modularize drvctl(4)

Revision 1.36.4.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:07 2015 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.36: +5 -5 lines
Diff to previous 1.36 (colored)

Sync with HEAD

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

include ioconf.h instead of locally declaring the prototype of the attach
function

Revision 1.38 / (download) - annotate - [select for diffs], Thu Aug 20 08:27:09 2015 UTC (7 years, 5 months ago) by uebayasi
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

Mark pseudo attach unused arg with __unused.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Aug 18 13:46:20 2015 UTC (7 years, 5 months ago) by uebayasi
Branch: MAIN
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored)

Convert pseudo attach functions to take no arguments, as some functions
(pppattach(), putterattach(), etc.) already do.  This means that pseudo
attach function will be able to become a constructor.

Revision 1.32.12.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:28 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.32.12.2: +12 -2 lines
Diff to previous 1.32.12.2 (colored) to branchpoint 1.32 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:55:58 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.35: +3 -2 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

Rebase.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Jul 25 08:10:40 2014 UTC (8 years, 6 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.35: +3 -2 lines
Diff to previous 1.35 (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.32.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:41:03 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.32.2.1: +15 -4 lines
Diff to previous 1.32.2.1 (colored) to branchpoint 1.32 (colored) next main 1.33 (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.34.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:07 2014 UTC (8 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.34: +13 -4 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

sync with head

Revision 1.35 / (download) - annotate - [select for diffs], Sun Mar 16 05:20:30 2014 UTC (8 years, 10 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.34: +13 -4 lines
Diff to previous 1.34 (colored)

Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

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

Revision 1.32.12.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:18:57 2013 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.32.12.1: +4 -2 lines
Diff to previous 1.32.12.1 (colored) to branchpoint 1.32 (colored)

resync from head

Revision 1.19.6.4 / (download) - annotate - [select for diffs], Wed Jun 19 07:55:44 2013 UTC (9 years, 7 months ago) by bouyer
Branch: netbsd-5
Changes since 1.19.6.3: +4 -2 lines
Diff to previous 1.19.6.3 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1859):
	sys/kern/kern_drvctl.c: revision 1.34
Fix memory leak on the following cases when device attached or detached:
  - No one open drvctl.
  - kmem_alloc() failed in devmon_insert().

Revision 1.32.8.1 / (download) - annotate - [select for diffs], Sat May 11 21:43:06 2013 UTC (9 years, 8 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, 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
Changes since 1.32: +4 -2 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #883):
	sys/kern/kern_drvctl.c: revision 1.34
Fix memory leak on the following cases when device attached or detached:
  - No one open drvctl.
  - kmem_alloc() failed in devmon_insert().
XXX pullup to both netbsd-5 and netbsd-6.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Apr 26 09:04:43 2013 UTC (9 years, 9 months ago) by msaitoh
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.33: +4 -2 lines
Diff to previous 1.33 (colored)

Fix memory leak on the following cases when device attached or detached:
 - No one open drvctl.
 - kmem_alloc() failed in devmon_insert().

XXX pullup to both netbsd-5 and netbsd-6.

Revision 1.32.12.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:42 2012 UTC (10 years, 2 months ago) by tls
Branch: tls-maxphys
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:28 2012 UTC (10 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored)

sync with head

Revision 1.33 / (download) - annotate - [select for diffs], Sat Oct 27 17:18:39 2012 UTC (10 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, agc-symver-base, agc-symver
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored)

split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Aug 31 18:31:02 2011 UTC (11 years, 5 months ago) by plunky
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, 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
Branch point for: yamt-pagecache, tls-maxphys, netbsd-6
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

NULL does not need a cast

Revision 1.19.6.2.4.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:15 2010 UTC (12 years, 9 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.19.6.2: +7 -3 lines
Diff to previous 1.19.6.2 (colored) next main 1.19.6.3 (colored)

sync to netbsd-5

Revision 1.16.4.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:16 2010 UTC (12 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.16.4.1: +6 -6 lines
Diff to previous 1.16.4.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

sync with head

Revision 1.31 / (download) - annotate - [select for diffs], Sun Dec 20 09:36:05 2009 UTC (13 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

If a multithreaded app closes an fd while another thread is blocked in
read/write/accept, then the expectation is that the blocked thread will
exit and the close complete.
Since only one fd is affected, but many fd can refer to the same file,
the close code can only request the fs code unblock with ERESTART.
Fixed for pipes and sockets, ERESTART will only be generated after such
a close - so there should be no change for other programs.
Also rename fo_abort() to fo_restart() (this used to be fo_drain()).
Fixes PR/26567

Revision 1.30 / (download) - annotate - [select for diffs], Wed Dec 9 21:32:59 2009 UTC (13 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Rename fo_drain() to fo_abort(), 'drain' is used to mean 'wait for output
do drain' in many places, whereas fo_drain() was called in order to force
blocking read()/write() etc calls to return to userspace so that a close()
call from a different thread can complete.
In the sockets code comment out the broken code in the inner function,
it was being called from compat code.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Sep 16 16:34:50 2009 UTC (13 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.28: +5 -5 lines
Diff to previous 1.28 (colored)

In pmf(9), improve the implementation of device self-suspension
and make suspension by self, by drvctl(8), and by ACPI system sleep
play nice together.  Start solidifying some temporary API changes.

1. Extract a new header file, <sys/device_if.h>, from <sys/device.h> and
   #include it from <sys/pmf.h> instead of <sys/device.h> to break the
   circular dependency between <sys/device.h> and <sys/pmf.h>.

2. Introduce pmf_qual_t, an aggregate of qualifications on a PMF
   suspend/resume call.  Start to replace instances of PMF_FN_PROTO,
   PMF_FN_ARGS, et cetera, with a pmf_qual_t.

3. Introduce the notion of a "suspensor," an entity that holds a
   device in suspension.  More than one suspensor may hold a device
   at once.  A device stays suspended as long as at least one
   suspensor holds it.  A device resumes when the last suspensor
   releases it.

   Currently, the kernel defines three suspensors,

   3a the system-suspensor: for system suspension, initiated
      by 'sysctl -w machdep.sleep_state=3', by lid closure, by
      power-button press, et cetera,

   3b the drvctl-suspensor: for device suspension by /dev/drvctl
      ioctl, e.g., drvctl -S sip0.

   3c the system self-suspensor: for device drivers that suspend
      themselves and their children.  Several drivers for network
      interfaces put the network device to sleep while it is not
      administratively up, that is, after the kernel calls if_stop(,
      1).  The self-suspensor should not be used directly.  See
      the description of suspensor delegates, below.

   A suspensor can have one or more "delegates".  A suspensor can
   release devices that its delegates hold suspended.  Right now,
   only the system self-suspensor has delegates.  For each device
   that a self-suspending driver attaches, it creates the device's
   self-suspensor, a delegate of the system self-suspensor.

   Suspensors stop a system-wide suspend/resume cycle from waking
   devices that the operator put to sleep with drvctl before the cycle.
   They also help self-suspension to work more simply, safely, and in
   accord with expectations.

4. Add the notion of device activation level, devact_level_t,
   and a routine for checking the current activation level,
   device_activation().  Current activation levels are DEVACT_LEVEL_BUS,
   DEVACT_LEVEL_DRIVER, and DEVACT_LEVEL_CLASS, which respectively
   indicate that the device's bus is active, that the bus and device are
   active, and that the bus, device, and the functions of the device's
   class (network, audio) are active.

   Suspend/resume calls can be qualified with a devact_level_t.
   The power-management framework treats a devact_level_t that
   qualifies a device suspension as the device's current activation
   level; it only runs hooks to reduce the activation level from
   the presumed current level to the fully suspended state.  The
   framework treats a devact_level_t qualifying device resumption
   as the target activation level; it only runs hooks to raise the
   activation level to the target.

5. Use pmf_qual_t, devact_level_t, and self-suspensors in several
   drivers.

6. Temporarily add an unused power-management workqueue that I will
   remove or replace, soon.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:56 2009 UTC (13 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.22: +54 -36 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Sync with HEAD.

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

Revision 1.16.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:46 2009 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.16: +257 -35 lines
Diff to previous 1.16 (colored)

sync with head.

Revision 1.19.6.3 / (download) - annotate - [select for diffs], Sun May 3 22:39:49 2009 UTC (13 years, 9 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, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.19.6.2: +7 -3 lines
Diff to previous 1.19.6.2 (colored) to branchpoint 1.19 (colored)

Pull up following revision(s) (requested by joerg in ticket #675):
	sys/kern/kern_drvctl.c: revision 1.24
Allow querying for root devices in the tree by specifying an empty
device name. Ensure that l_devname is NUL-terminated and fail otherwise.
OK cube@

Revision 1.28 / (download) - annotate - [select for diffs], Thu Apr 30 20:39:08 2009 UTC (13 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, jymxensuspend-base, jym-xensuspend-base
Changes since 1.27: +27 -27 lines
Diff to previous 1.27 (colored)

Remove extraneous parentheses.  Fix spelling/grammar.  No functional
change intended.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Apr 30 05:15:36 2009 UTC (13 years, 9 months ago) by nonaka
Branch: MAIN
Changes since 1.26: +3 -2 lines
Diff to previous 1.26 (colored)

include sys/lwp.h for curlwp.

Revision 1.19.4.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:59 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.19.4.1: +28 -11 lines
Diff to previous 1.19.4.1 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

Sync with HEAD.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Apr 11 23:05:26 2009 UTC (13 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.25: +5 -2 lines
Diff to previous 1.25 (colored)

Fix locking as Andy explained. Also fill in uid and gid like sys_pipe did.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Apr 11 15:47:33 2009 UTC (13 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.24: +12 -3 lines
Diff to previous 1.24 (colored)

Fix PR/37878 and PR/37550: Provide stat(2) for all devices and don't use
fbadop_stat.

Revision 1.19.6.2 / (download) - annotate - [select for diffs], Sat Apr 4 23:36:27 2009 UTC (13 years, 9 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.19.6.1: +11 -10 lines
Diff to previous 1.19.6.1 (colored) to branchpoint 1.19 (colored)

Pull up following revision(s) (requested by ad in ticket #661):
	sys/arch/xen/xen/xenevt.c: revision 1.32
	sys/compat/svr4/svr4_net.c: revision 1.56
	sys/compat/svr4_32/svr4_32_net.c: revision 1.19
	sys/dev/dmover/dmover_io.c: revision 1.32
	sys/dev/putter/putter.c: revision 1.21
	sys/kern/kern_descrip.c: revision 1.190
	sys/kern/kern_drvctl.c: revision 1.23
	sys/kern/kern_event.c: revision 1.64
	sys/kern/sys_mqueue.c: revision 1.14
	sys/kern/sys_pipe.c: revision 1.109
	sys/kern/sys_socket.c: revision 1.59
	sys/kern/uipc_syscalls.c: revision 1.136
	sys/kern/vfs_vnops.c: revision 1.164
	sys/kern/uipc_socket.c: revision 1.188
	sys/net/bpf.c: revision 1.144
	sys/net/if_tap.c: revision 1.55
	sys/opencrypto/cryptodev.c: revision 1.47
	sys/sys/file.h: revision 1.67
	sys/sys/param.h: patch
	sys/sys/socketvar.h: revision 1.119
Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.
Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.
thr0	accept(fd, ...)
thr1	close(fd)

Revision 1.24 / (download) - annotate - [select for diffs], Sat Apr 4 21:49:05 2009 UTC (13 years, 9 months ago) by joerg
Branch: MAIN
Changes since 1.23: +7 -3 lines
Diff to previous 1.23 (colored)

Allow querying for root devices in the tree by specifying an empty
device name. Ensure that l_devname is NUL-terminated and fail otherwise.
OK cube@

Revision 1.23 / (download) - annotate - [select for diffs], Sat Apr 4 10:12:51 2009 UTC (13 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.22: +11 -10 lines
Diff to previous 1.22 (colored)

Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.

Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.

thr0	accept(fd, ...)
thr1	close(fd)

Revision 1.19.4.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:38 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.19: +30 -12 lines
Diff to previous 1.19 (colored)

Sync with HEAD.

Revision 1.14.6.5 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:18 2009 UTC (14 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.14.6.4: +28 -10 lines
Diff to previous 1.14.6.4 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

Sync with HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Jan 17 07:02:35 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.21: +9 -10 lines
Diff to previous 1.21 (colored)

malloc -> kmem_alloc.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Jan 3 03:31:23 2009 UTC (14 years ago) by yamt
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

remove extra semicolons.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:08 2008 UTC (14 years, 1 month ago) by haad
Branch: haad-dm
Changes since 1.19: +22 -3 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

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

Revision 1.19.6.1 / (download) - annotate - [select for diffs], Tue Nov 25 04:01:28 2008 UTC (14 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1
Changes since 1.19: +22 -3 lines
Diff to previous 1.19 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #118):
	sys/kern/kern_drvctl.c: revision 1.20
Add poll support for drvctl notification events

Revision 1.20 / (download) - annotate - [select for diffs], Sun Nov 23 23:59:41 2008 UTC (14 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.19: +22 -3 lines
Diff to previous 1.19 (colored)

Add poll support for drvctl notification events

Revision 1.16.6.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:41 2008 UTC (14 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.16.6.1: +3 -3 lines
Diff to previous 1.16.6.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.14.6.4 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:13 2008 UTC (14 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.14.6.3: +1 -1 lines
Diff to previous 1.14.6.3 (colored) to branchpoint 1.14 (colored)

Sync with HEAD.

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Fri Jun 27 15:11:38 2008 UTC (14 years, 7 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Sync with head.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jun 24 10:24:21 2008 UTC (14 years, 7 months ago) by gmcgarry
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5, haad-dm
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

ioctl commands are unsigned long.

Revision 1.16.6.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:50 2008 UTC (14 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.16: +194 -8 lines
Diff to previous 1.16 (colored)

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

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:39 2008 UTC (14 years, 7 months ago) by yamt
Branch: yamt-pf42
Changes since 1.16: +194 -8 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

sync with head

Revision 1.14.6.3 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:07 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.14.6.2: +194 -8 lines
Diff to previous 1.14.6.2 (colored) to branchpoint 1.14 (colored)

Sync with HEAD.

Revision 1.18 / (download) - annotate - [select for diffs], Fri May 30 15:30:37 2008 UTC (14 years, 8 months ago) by freza
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl
Changes since 1.17: +5 -2 lines
Diff to previous 1.17 (colored)

Any time we remove event from the queue make sure we 1. release the
event plist and 2. free the drvctl_event struct.

Discussed with jmcneill@.

Revision 1.17 / (download) - annotate - [select for diffs], Sun May 25 12:30:40 2008 UTC (14 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.16: +191 -8 lines
Diff to previous 1.16 (colored)

Add DRVGETEVENT support for /dev/drvctl, based on devmon support by
Jachym Holecek for Google Summer of Code. DRVGETEVENT plist is currently
limited to event type, device name, and device parent name.

Revision 1.14.6.2 / (download) - annotate - [select for diffs], Sat Apr 5 23:33:23 2008 UTC (14 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.14.6.1: +4 -2 lines
Diff to previous 1.14.6.1 (colored) to branchpoint 1.14 (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.14.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:01 2008 UTC (14 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.14: +28 -18 lines
Diff to previous 1.14 (colored)

Sync with HEAD.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:13 2008 UTC (14 years, 10 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.14: +28 -18 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

sync with head.

Revision 1.11.10.1 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:58 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.11: +111 -51 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

sync with HEAD

Revision 1.1.14.7 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:32 2008 UTC (14 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.14.6: +28 -18 lines
Diff to previous 1.1.14.6 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Mar 12 18:02:21 2008 UTC (14 years, 10 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-nbase, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Changes since 1.15: +10 -7 lines
Diff to previous 1.15 (colored)

Use device_t and its accessors throughout.  Use aprint_*_dev().

Improve PMF-ability.

        Add a 'flags' argument to suspend/resume handlers and
        callers such as pmf_system_suspend().

        Define a flag, PMF_F_SELF, which indicates to PMF that a
        device is suspending/resuming itself.  Add helper routines,
        pmf_device_suspend_self(dev) and pmf_device_resume_self(dev),
        that call pmf_device_suspend(dev, PMF_F_SELF) and
        pmf_device_resume(dev, PMF_F_SELF), respectively.  Use
        PMF_F_SELF to suspend/resume self in ath(4), audio(4),
        rtw(4), and sip(4).

        In ath(4) and in rtw(4), replace the icky sc_enable/sc_disable
        callbacks, provided by the bus front-end, with
        self-suspension/resumption.  Also, clean up the bus
        front-ends.  Make sure that the interrupt handler is
        disestablished during suspension.  Get rid of driver-private
        flags (e.g., RTW_F_ENABLED, ath_softc->sc_invalid); use
        device_is_active()/device_has_power() calls, instead.

        In the network-class suspend handler, call if_stop(, 0)
        instead of if_stop(, 1), because the latter is superfluous
        (bus- and driver-suspension hooks will 'disable' the NIC),
        and it may cause recursion.

        In the network-class resume handler, prevent infinite
        recursion through if_init() by getting out early if we are
        self-suspending (PMF_F_SELF).

rtw(4) improvements:

        Destroy rtw(4) callouts when we detach it.  Make rtw at
        pci detachable.  Print some more information with the "rx
        frame too long" warning.

Remove activate() methods:

        Get rid of rtw_activate() and ath_activate().  The device
        activate() methods are not good for much these days.

Make ath at cardbus resume with crypto functions intact:

        Introduce a boolean device property, "pmf-powerdown".  If
        pmf-powerdown is present and false, it indicates that a
        bus back-end should not remove power from a device.

        Honor this property in cardbus_child_suspend().

        Set this property to 'false' in ath_attach(), since removing
        power from an ath at cardbus seems to lobotomize the WPA
        crypto engine.  XXX Should the pmf-powerdown property
        propagate toward the root of the device tree?

Miscellaneous ath(4) changes:

        Warn if ath(4) tries to write crypto keys to suspended
        hardware.

        Reduce differences between FreeBSD and NetBSD in ath(4)
        multicast filter setup.

        Make ath_printrxbuf() print an rx descriptor's status &
        key index, to help debug crypto errors.

        Shorten a staircase in ath_ioctl().  Don't check for
        ieee80211_ioctl() return code ERESTART, it never happens.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Mar 5 07:09:18 2008 UTC (14 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.14: +20 -13 lines
Diff to previous 1.14 (colored)

Synchronize readers and writers of the device tree.

Add a device iterator object, deviter_t, and methods deviter_init(),
deviter_first(), and deviter_next() for visiting each device in
the device tree.

Take care not to re-shutdown a device in the event that the machine
panics during reboot and the operator types 'reboot' at the kernel
debugger prompt.

While I'm here, sprinkle PMF_FN_ARGS, PMF_FN_PROTO, et cetera.

Revision 1.1.14.6 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:55 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.14.5: +6 -19 lines
Diff to previous 1.1.14.5 (colored) to branchpoint 1.1 (colored)

sync with head.

Revision 1.11.16.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:45 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.11: +95 -45 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Sync with HEAD.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Feb 12 17:30:59 2008 UTC (14 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.13: +6 -19 lines
Diff to previous 1.13 (colored)

Introduce device_find_by_xname and device_find_by_driver_unit to replace
alldevs iterations all over src.

Patch discussed with and improved on suggestioned from cube@.

Revision 1.1.14.5 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:58 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.14.4: +16 -33 lines
Diff to previous 1.1.14.4 (colored) to branchpoint 1.1 (colored)

sync with head.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Feb 6 20:24:17 2008 UTC (14 years, 11 months ago) by drochner
Branch: MAIN
Changes since 1.12: +16 -33 lines
Diff to previous 1.12 (colored)

The tricks done in device_foreach_child() still don't make it safe to use
by config_detach_children(), because the latter can work recursively
and remove any number of devices, so rewrite config_detach_children()
to restart list traversal after each call of config_detach(), and since
only one user of device_foreach_child() is left (in kern_drvctl.c),
and it is simpler to open-code the loop than to deal with callbacks,
just remove it.

Revision 1.1.14.4 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:09 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.14.3: +125 -45 lines
Diff to previous 1.1.14.3 (colored) to branchpoint 1.1 (colored)

sync with head.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jan 27 01:38:33 2008 UTC (15 years ago) by dyoung
Branch: MAIN
Changes since 1.11: +125 -45 lines
Diff to previous 1.11 (colored)

Patch /dev/drvctl and drvctl(8) to let us suspend/resume device
sub-trees, and to let us list the children of a device.

While I am here, add -p to the drvctl(8) usage message.

Revision 1.1.14.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:45 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.14.2: +6 -4 lines
Diff to previous 1.1.14.2 (colored) to branchpoint 1.1 (colored)

sync with head.

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:45 2007 UTC (15 years, 6 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.10: +5 -3 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Sync with head.

Revision 1.9.4.2 / (download) - annotate - [select for diffs], Sun Apr 15 16:03:48 2007 UTC (15 years, 9 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.9.4.1: +5 -3 lines
Diff to previous 1.9.4.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

sync with head.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Tue Apr 10 13:26:38 2007 UTC (15 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.10: +5 -3 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Sync with head.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Apr 3 23:02:39 2007 UTC (15 years, 10 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs, matt-armv6
Changes since 1.10: +5 -3 lines
Diff to previous 1.10 (colored)

drvctlioctl: Plug a possible memory leak.
CID: 4363

Revision 1.9.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:33 2007 UTC (15 years, 10 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Sync with HEAD.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:03 2007 UTC (15 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

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

Revision 1.1.14.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:05 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.14.1: +117 -6 lines
Diff to previous 1.1.14.1 (colored) to branchpoint 1.1 (colored)

sync with head.

Revision 1.4.22.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:44 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.4.22.1: +6 -10 lines
Diff to previous 1.4.22.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with head.

Revision 1.4.20.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:21 2006 UTC (16 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.4: +117 -6 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Sync with head.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:58 2006 UTC (16 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.8: +5 -6 lines
Diff to previous 1.8 (colored)

remove some __unused from function parameters.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Oct 26 05:08:01 2006 UTC (16 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.7: +3 -6 lines
Diff to previous 1.7 (colored)

Use prop_dictionary_set_int32() to set the error number.

Revision 1.4.22.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:10 2006 UTC (16 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.4: +123 -8 lines
Diff to previous 1.4 (colored)

sync with head

Revision 1.7 / (download) - annotate - [select for diffs], Thu Oct 12 04:29:37 2006 UTC (16 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.6: +6 -5 lines
Diff to previous 1.6 (colored)

Add __unused as necessary.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Oct 6 17:54:05 2006 UTC (16 years, 3 months ago) by gdt
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

add missing d_type member in cdevsw initializer

Revision 1.5 / (download) - annotate - [select for diffs], Fri Sep 22 04:37:37 2006 UTC (16 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.4: +119 -5 lines
Diff to previous 1.4 (colored)

- Add a new DRVCTLCOMMAND ioctl to /dev/drvctl.  This is a generic
  "execute a command" ioctl that takes a dictionary as an argument
  (specifying the command and arguments) and returns a dictionary
  with the results (error code, optional error message, optional
  result data).

- Define and implement a "get-properties" command for DRVCTLCOMMAND
  that returns the properties dictionary of the specified device.

- Add a -p flag to drvctl(8) to fetch and display the properties of
  the specified device.

This is a great example of how to use prop_dictionary_sendrecv_ioctl().

Revision 1.1.14.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:37 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1: +6 -6 lines
Diff to previous 1.1 (colored)

sync with head.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Dec 15 22:01:17 2005 UTC (17 years, 1 month ago) by cube
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

ktrace-lwp merge fallout.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

merge ktrace-lwp.

Revision 1.1.2.5 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:44 2005 UTC (17 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.2.4: +5 -5 lines
Diff to previous 1.1.2.4 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD. Here we go again...

Revision 1.2 / (download) - annotate - [select for diffs], Thu Aug 25 15:06:28 2005 UTC (17 years, 5 months ago) by drochner
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.1: +5 -5 lines
Diff to previous 1.1 (colored)

Replace the "locnames", attached to cfdata, which was solely good for
userconf, by more complete information (including default values) about
interface attributes, attached to the drivers which provide them.

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:03 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.2.3: +2 -2 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored)

Fix the sync with head I botched.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:02 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.2.2: +2 -2 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored)

Sync with HEAD.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Wed Aug 25 06:58:58 2004 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.2.1: +175 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Sync with HEAD.

Revision 1.1.2.1, Wed Aug 18 12:19:29 2004 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.1: +0 -175 lines
FILE REMOVED

file kern_drvctl.c was added on branch ktrace-lwp on 2004-08-25 06:58:58 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Wed Aug 18 12:19:29 2004 UTC (18 years, 5 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf, ktrace-lwp

add a "drvctl" pseudo-device as userland interface to the autoconf
rescan() and detach() functions

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>