freebsd-skq/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
lpbb.c
lpt.c
lpt.h
lptio.h
pcfclock.c
ppb_1284.c
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
ppbio.h
ppbus_if.m
ppi.c
ppi.h
pps.c
vpo.c MFp4: Large set of CAM inprovements. 2010-01-28 08:41:30 +00:00
vpoio.c
vpoio.h