freebsd-dev/sys/dev
Bosko Milekic 08812b3925 Implement MTX_RECURSE flag for mtx_init().
All calls to mtx_init() for mutexes that recurse must now include
the MTX_RECURSE bit in the flag argument variable. This change is in
preparation for an upcoming (further) mutex API cleanup.
The witness code will call panic() if a lock is found to recurse but
the MTX_RECURSE bit was not set during the lock's initialization.

The old MTX_RECURSE "state" bit (in mtx_lock) has been renamed to
MTX_RECURSED, which is more appropriate given its meaning.

The following locks have been made "recursive," thus far:
eventhandler, Giant, callout, sched_lock, possibly some others declared
in the architecture-specific code, all of the network card driver locks
in pci/, as well as some other locks in dev/ stuff that I've found to
be recursive.

Reviewed by: jhb
2001-01-19 01:59:14 +00:00
..
aac Remove a mismatched splbio() in aac_start (the called functions each protect 2001-01-10 11:43:02 +00:00
acpica Add 3 new dynamic sysctl's to control the sleep states switched to on a 2001-01-13 21:28:57 +00:00
advansys Remove unneeded <stddef.h> #includes. 2000-10-29 16:57:42 +00:00
agp un-staticize M_AGP so that it can be used in agp*.c 2000-12-19 08:32:37 +00:00
aha Remove unnecessary includes found by phk's script a long time ago. 2000-12-13 06:25:22 +00:00
ahb Add the use of M_ZERO to some malloc calls. 2000-10-29 15:47:16 +00:00
aic Add aic to the list of drivers that might work with NEWCARD. I've added 2001-01-08 01:59:15 +00:00
aic7xxx Index our "DMA safe" sense buffers by SCB rather than hscb. 2001-01-09 00:40:38 +00:00
amd Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
amr Probe generic i960 devices for the old AMI signature as well as the current 2000-12-22 22:23:56 +00:00
an Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
ar Special case for compiling LINT - just give a warning and continue on. 2001-01-17 00:47:46 +00:00
asr Use M_ZERO. 2000-12-03 13:21:55 +00:00
ata When blocksize is set to 2352, alwas read 2352 bytes. 2001-01-18 15:20:18 +00:00
atkbdc select() DKI is now in <sys/selinfo.h>. 2001-01-09 04:33:49 +00:00
awi Note new location of if_wavelan_ieee.h. 2001-01-09 04:23:05 +00:00
bktr select() DKI is now in <sys/selinfo.h>. 2001-01-09 04:33:49 +00:00
buslogic Classify all EISA cards with major firmware revions '2' as 742As. 2000-11-13 03:44:20 +00:00
cardbus This cannot possibly be right: 2001-01-07 20:52:42 +00:00
ccd Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
cs Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
cy Special case for compiling LINT - just give a warning and continue on. 2001-01-17 00:47:46 +00:00
dc Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
de Lock down the network interface queues. The queue mutex must be obtained 2000-11-25 07:35:38 +00:00
dec Add missing $FreeBSD$ 2000-05-01 19:54:26 +00:00
dgb Completed move of Digiboard drivers to dev/dgb 2001-01-08 02:47:37 +00:00
dpt Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
ed select() DKI is now in <sys/selinfo.h>. 2001-01-09 04:33:49 +00:00
eisa Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
en Lock down the network interface queues. The queue mutex must be obtained 2000-11-25 07:35:38 +00:00
ep Add the 3COM ID's that I could find in the pccarddevs file that seemed 2001-01-07 21:24:41 +00:00
ex Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
fb Add the VESA S3 linear framebuffer driver. It works on top of VESA by replacing 2001-01-05 16:53:10 +00:00
fdc Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
fe The fe driver does not support pnp devices. 2000-11-10 14:05:47 +00:00
fxp Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
hea Minor tweaks to get these to stop breaking LINT. They still dont work 2001-01-17 01:08:50 +00:00
hfa Minor tweaks to get these to stop breaking LINT. They still dont work 2001-01-17 01:08:50 +00:00
ic Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
ichsmb Add missing #include. 2000-12-08 00:49:37 +00:00
ida Add a flag value to the board identifiers, and use this to enable the 2001-01-09 14:49:41 +00:00
ie Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
iicbus Lock down the network interface queues. The queue mutex must be obtained 2000-11-25 07:35:38 +00:00
isp Guard against overflow of the calculated timeout value. 2001-01-16 07:15:36 +00:00
ispfw roll to 2.01.26 level 2000-12-28 23:23:28 +00:00
joy Add ADS7182 as a known Joystick. 2000-01-18 08:38:35 +00:00
kbd Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
lmc Minor tweaks to get these to stop breaking LINT. They still dont work 2001-01-17 01:08:50 +00:00
lnc Make it clear that the macro `inb' is being overridden. 2001-01-09 04:23:56 +00:00
mc146818 Add missing $FreeBSD$ 2000-05-01 19:54:26 +00:00
mca Reduce code duplication by using the GET_RESOURCE_LIST bus method and related 2000-11-28 07:12:12 +00:00
mcd Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
md Either cvs(1) or I forgot this file in my last commit. 2001-01-02 09:42:47 +00:00
mii Grrrrr. That last commit was supposed to be to the head, not to -stable 2000-12-12 19:31:14 +00:00
mlx Avoid hardcoding the 'rid' and 'type' of the MEM/IOPORT resource. 2000-11-28 06:17:32 +00:00
mly Further use of M_ZERO. 2000-11-18 15:21:22 +00:00
mse Initiate deorbit burn sequence for <machine/mouse.h>. 2000-10-09 08:08:36 +00:00
musycc Part 2 of the netgraph rewrite. 2001-01-08 05:34:06 +00:00
ncv select() DKI is now in <sys/selinfo.h>. 2001-01-09 04:33:49 +00:00
nsp select() DKI is now in <sys/selinfo.h>. 2001-01-09 04:33:49 +00:00
null Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
ofw OpenFirmware/PowerPC loader, part 2. 2000-11-10 06:39:58 +00:00
pccard This is a bandaid for a problem that is not entirely fixed yet. 2001-01-07 21:32:05 +00:00
pccbb o Now that I've had time to test the new interface, reintegrate it back in. 2001-01-07 16:31:09 +00:00
pcf Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
pci Remove vga_pci generic driver. 2001-01-05 16:40:30 +00:00
pcic o Now that I've had time to test the new interface, reintegrate it back in. 2001-01-07 16:31:09 +00:00
pdq make PCI DEFPA fiddi adapters work on alpha: 2001-01-08 21:04:33 +00:00
ppbus Cleanup and improve mode detection. Now, you should get what you actually 2001-01-02 21:29:06 +00:00
ppc Fix the PR. Getting a dma channel equal to 0 remains a problem though. 2000-12-19 21:28:17 +00:00
random Remove NOBLOCKRANDOM as a compile-time option. Instead, provide 2001-01-14 17:50:15 +00:00
ray Take advantage of the fixes to the pcic code that allows multiple 2001-01-17 17:55:00 +00:00
rc Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
rp Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
scd Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
sf Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
si Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
sio Add OZO8008 - Zoom (33.6k Modem). 2000-12-26 06:52:57 +00:00
sk Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
smbus Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
sn Add support for SMC91C100FD chip of MELCO LPC-TX. 2001-01-15 12:01:14 +00:00
snc Remove unused #includes. 2000-10-31 08:22:26 +00:00
snp Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
sound Catch up to the name changes in the hwvol API. 2001-01-11 23:26:38 +00:00
speaker Staticize some malloc M_ instances. 2000-12-08 20:09:00 +00:00
sr Special case for compiling LINT - just give a warning and continue on. 2001-01-17 00:47:46 +00:00
stg select() DKI is now in <sys/selinfo.h>. 2001-01-09 04:33:49 +00:00
streams Cleanup after repo copy of sys/svr4 to sys/compat/svr4. 2000-09-01 08:47:14 +00:00
sym Remove unneeded include of <pci.h> 2000-12-07 20:58:16 +00:00
syscons select() DKI is now in <sys/selinfo.h>. 2001-01-09 04:33:49 +00:00
tdfx Added some handling code to work with SLI configs, and removed some unused 2000-10-10 03:51:54 +00:00
ti Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
twe - add support for crashdumps (courtesy of ps and Y!) 2000-12-03 02:11:35 +00:00
tx Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
usb Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
vinum struct rangelock: Remove the field 'plex' from the entry. Range locks 2001-01-14 06:34:57 +00:00
vn Remove cdevsw when unloading the vn module. 2001-01-07 19:03:14 +00:00
vr Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
vx When I converted this driver, I neglected to deal with packet alignment. 2000-12-07 23:30:51 +00:00
wds Weaken a bogus dependency on <sys/proc.h> in <sys/buf.h> by #ifdef'ing 2000-10-29 14:54:55 +00:00
wi Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
wl Move suser() and suser_xxx() prototypes and a related #define from 2000-10-29 16:06:56 +00:00
xe select() DKI is now in <sys/selinfo.h>. 2001-01-09 04:33:49 +00:00