scsi_ch.c (169605) | scsi_ch.c (187028) |
---|---|
1/*- 2 * Copyright (c) 1997 Justin T. Gibbs. 3 * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 54 unchanged lines hidden (view full) --- 63 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 64 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 65 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 66 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 67 * SUCH DAMAGE. 68 */ 69 70#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997 Justin T. Gibbs. 3 * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 54 unchanged lines hidden (view full) --- 63 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 64 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 65 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 66 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 67 * SUCH DAMAGE. 68 */ 69 70#include <sys/cdefs.h> |
71__FBSDID("$FreeBSD: head/sys/cam/scsi/scsi_ch.c 169605 2007-05-16 16:54:23Z scottl $"); | 71__FBSDID("$FreeBSD: head/sys/cam/scsi/scsi_ch.c 187028 2009-01-10 17:22:49Z trasz $"); |
72 73#include <sys/param.h> 74#include <sys/queue.h> 75#include <sys/systm.h> 76#include <sys/kernel.h> 77#include <sys/types.h> 78#include <sys/malloc.h> 79#include <sys/fcntl.h> --- 177 unchanged lines hidden (view full) --- 257 258static void 259chcleanup(struct cam_periph *periph) 260{ 261 struct ch_softc *softc; 262 263 softc = (struct ch_softc *)periph->softc; 264 | 72 73#include <sys/param.h> 74#include <sys/queue.h> 75#include <sys/systm.h> 76#include <sys/kernel.h> 77#include <sys/types.h> 78#include <sys/malloc.h> 79#include <sys/fcntl.h> --- 177 unchanged lines hidden (view full) --- 257 258static void 259chcleanup(struct cam_periph *periph) 260{ 261 struct ch_softc *softc; 262 263 softc = (struct ch_softc *)periph->softc; 264 |
265 xpt_print(periph->path, "removing device entry\n"); |
|
265 devstat_remove_entry(softc->device_stats); | 266 devstat_remove_entry(softc->device_stats); |
267 cam_periph_unlock(periph); |
|
266 destroy_dev(softc->dev); | 268 destroy_dev(softc->dev); |
267 xpt_print(periph->path, "removing device entry\n"); | 269 cam_periph_lock(periph); |
268 free(softc, M_DEVBUF); 269} 270 271static void 272chasync(void *callback_arg, u_int32_t code, struct cam_path *path, void *arg) 273{ 274 struct cam_periph *periph; 275 --- 1390 unchanged lines hidden --- | 270 free(softc, M_DEVBUF); 271} 272 273static void 274chasync(void *callback_arg, u_int32_t code, struct cam_path *path, void *arg) 275{ 276 struct cam_periph *periph; 277 --- 1390 unchanged lines hidden --- |