diff options
author | jhb <jhb@FreeBSD.org> | 2008-08-04 21:03:06 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-08-04 21:03:06 +0000 |
commit | 3b547d7c3ff7d40672c49c58d43eeea9f09423a4 (patch) | |
tree | 08e4c4501b42622c7e3145bc5fd24fe0b8042ee7 /lib/libgssapi/gss_unwrap.c | |
parent | 9b394a3293bfa4397c24c6649034b411994dbb72 (diff) | |
download | FreeBSD-src-3b547d7c3ff7d40672c49c58d43eeea9f09423a4.zip FreeBSD-src-3b547d7c3ff7d40672c49c58d43eeea9f09423a4.tar.gz |
Add locking to the core iicbus(4) drivers:
- Add an sx lock to the iic(4) driver to serialize open(), close(), read(),
and write and to protect sc_addr and sc_count in the softc.
- Use cdev->si_drv1 instead of using the minor number of the cdev to
lookup the softc via newbus in iic(4).
- Store the device_t in the softc to avoid a similar detour via minor
numbers in iic(4).
- Only add at most one instance of iic(4) and iicsmb(4) to each iicbus(4)
instance, and do it in the child driver.
- Add a mutex to the iicbus(4) softc to synchronize the request/release bus
stuff.
- Use __BUS_ACCESSOR() for IICBUS_ACCESSOR() instead of rolling our own.
- Add a mutex to the iicsmb(4) softc to protect softc state updated in the
interrupt handler.
- Remove Giant from all the smbus methods in iicsmb(4) now that all the
iicbus(4) backend is locked.
Diffstat (limited to 'lib/libgssapi/gss_unwrap.c')
0 files changed, 0 insertions, 0 deletions