freebsd-dev/sys/dev/sound
Attilio Rao 444b91868b Make the newbus subsystem Giant free by adding the new newbus sxlock.
The newbus lock is responsible for protecting newbus internIal structures,
device states and devclass flags. It is necessary to hold it when all
such datas are accessed. For the other operations, softc locking should
ensure enough protection to avoid races.

Newbus lock is automatically held when virtual operations on the device
and bus are invoked when loading the driver or when the suspend/resume
take place. For other 'spourious' operations trying to access/modify
the newbus topology, newbus lock needs to be automatically acquired and
dropped.

For the moment Giant is also acquired in some key point (modules subsystem)
in order to avoid problems before the 8.0 release as module handlers could
make assumptions about it. This Giant locking should go just after
the release happens.

Please keep in mind that the public interface can be expanded in order
to provide more support, if there are really necessities at some point
and also some bugs could arise as long as the patch needs a bit of
further testing.

Bump __FreeBSD_version in order to reflect the newbus lock introduction.

Reviewed by:    ed, hps, jhb, imp, mav, scottl
No answer by:   ariff, thompsa, yongari
Tested by:      pho,
                G. Trematerra <giovanni dot trematerra at gmail dot com>,
                Brandon Gooch <jamesbrandongooch at gmail dot com>
Sponsored by:   Yahoo! Incorporated
Approved by:	re (ksmith)
2009-08-02 14:28:40 +00:00
..
isa Sound Mega-commit. Expect further cleanup until code freeze. 2009-06-07 19:12:08 +00:00
macio Fix powerpc build failure due to strict kobj signatures checking. 2009-06-08 08:10:52 +00:00
midi Change the type of uio_resid member of struct uio from int to ssize_t. 2009-06-25 18:46:30 +00:00
pci Make the newbus subsystem Giant free by adding the new newbus sxlock. 2009-08-02 14:28:40 +00:00
pcm - Do aggresive saturation on various polynomial interpolators. 2009-07-14 18:53:34 +00:00
sbus Fix compile time warning on sparc64, thanks to strict kobj signatures checking. 2009-06-08 23:24:01 +00:00
usb USB audio: 2009-07-30 00:14:56 +00:00
chip.h
clone.c Sound Mega-commit. Expect further cleanup until code freeze. 2009-06-07 19:12:08 +00:00
clone.h - Add option to allow sleeping malloc(9). 2007-06-14 11:10:21 +00:00
driver.c Sound Mega-commit. Expect further cleanup until code freeze. 2009-06-07 19:12:08 +00:00
unit.c Sound Mega-commit. Expect further cleanup until code freeze. 2009-06-07 19:12:08 +00:00
unit.h Last major commit and updates for RELENG_7: 2007-05-31 18:35:24 +00:00
version.h - Add a way to change filter oversampling factor through 2009-06-15 04:31:34 +00:00