diff options
author | jhb <jhb@FreeBSD.org> | 2014-10-11 19:36:59 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2014-10-11 19:36:59 +0000 |
commit | e64c35384b3c05a815fca01fada16afa5a7990d2 (patch) | |
tree | 8fc5b3961acce3cd9c36bff7c501f726c45becf2 /sys/ddb/db_print.c | |
parent | 1b90da9ab8a3ec94fb70dbd7a4204352c038ddda (diff) | |
download | FreeBSD-src-e64c35384b3c05a815fca01fada16afa5a7990d2.zip FreeBSD-src-e64c35384b3c05a815fca01fada16afa5a7990d2.tar.gz |
Add locking and mark MPSAFE.
- Add a mutex to protect the softc.
- Use callout(9) instead of timeout(9).
- Consolidate duplicated detach routines into a bus-independent detach
routine.
- Add an extra sleep lock flag (MSESC_READING) to prevent other readers
from reading while the first reader is copying data out of sc_bytes[]
via uiomove().
- Use bus_*() instead of bus_space_*().
Tested by: nyan
Diffstat (limited to 'sys/ddb/db_print.c')
0 files changed, 0 insertions, 0 deletions