opnsense-src/sys/dev/ppbus
Attilio Rao ccdf233323 Introduce macro stubs in the mutex implementation that will be always
defined and will allow consumers, willing to provide options, file and
line to locking requests, to not worry about options redefining the
interfaces.
This is typically useful when there is the need to build another
locking interface on top of the mutex one.

The introduced functions that consumers can use are:
- mtx_lock_flags_
- mtx_unlock_flags_
- mtx_lock_spin_flags_
- mtx_unlock_spin_flags_
- mtx_assert_
- thread_lock_flags_

Spare notes:
- Likely we can get rid of all the 'INVARIANTS' specification in the
  ppbus code by using the same macro as done in this patch (but this is
  left to the ppbus maintainer)
- all the other locking interfaces may require a similar cleanup, where
  the most notable case is sx which will allow a further cleanup of
  vm_map locking facilities
- The patch should be fully compatible with older branches, thus a MFC
  is previewed (infact it uses all the underlying mechanisms already
  present).

Comments review by:	eadler, Ben Kaduk
Discussed with:		kib, jhb
MFC after:	1 month
2011-11-20 16:33:09 +00:00
..
if_plip.c Tag mbufs of all incoming frames or packets with the interface's FIB 2011-07-03 16:08:38 +00:00
immio.c Add locking to ppc and ppbus and mark the whole lot MPSAFE: 2009-01-21 23:10:06 +00:00
lpbb.c Make the bit-bang callbacks for i2c implementation match their prototypes. 2009-03-12 06:32:30 +00:00
lpt.c Check pointer for NULL before dereferencing it, not after. 2009-10-22 06:51:29 +00:00
lpt.h Various whitespace and style fixes. 2008-11-16 17:42:02 +00:00
lptio.h Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
pcfclock.c Check pointer for NULL before dereferencing it, not after. 2009-10-22 06:51:29 +00:00
ppb_1284.c Add locking to ppc and ppbus and mark the whole lot MPSAFE: 2009-01-21 23:10:06 +00:00
ppb_1284.h
ppb_base.c Introduce macro stubs in the mutex implementation that will be always 2011-11-20 16:33:09 +00:00
ppb_msq.c Add missing va_end() to clean up after va_start(). 2011-10-07 20:54:12 +00:00
ppb_msq.h
ppbconf.c Move the device_delete_all_children() function from usb_util.c 2011-11-19 10:11:50 +00:00
ppbconf.h Trim what we expose to userland in <dev/ppbus/ppbconf.h> to just the 2009-02-03 19:49:21 +00:00
ppbio.h
ppbus_if.m Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
ppi.c Add locking to ppc and ppbus and mark the whole lot MPSAFE: 2009-01-21 23:10:06 +00:00
ppi.h Various whitespace and style fixes. 2008-11-16 17:42:02 +00:00
pps.c Add locking to ppc and ppbus and mark the whole lot MPSAFE: 2009-01-21 23:10:06 +00:00
vpo.c MFp4: Large set of CAM inprovements. 2010-01-28 08:41:30 +00:00
vpoio.c Add locking to ppc and ppbus and mark the whole lot MPSAFE: 2009-01-21 23:10:06 +00:00
vpoio.h Various whitespace and style fixes. 2008-11-16 17:42:02 +00:00