Deleted Added
full compact
ctl_backend_block.c (229997) ctl_backend_block.c (230334)
1/*-
2 * Copyright (c) 2003 Silicon Graphics International Corp.
3 * Copyright (c) 2009-2011 Spectra Logic Corporation
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:

--- 22 unchanged lines hidden (view full) ---

31 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_backend_block.c#5 $
32 */
33/*
34 * CAM Target Layer driver backend for block devices.
35 *
36 * Author: Ken Merry <ken@FreeBSD.org>
37 */
38#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003 Silicon Graphics International Corp.
3 * Copyright (c) 2009-2011 Spectra Logic Corporation
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:

--- 22 unchanged lines hidden (view full) ---

31 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_backend_block.c#5 $
32 */
33/*
34 * CAM Target Layer driver backend for block devices.
35 *
36 * Author: Ken Merry <ken@FreeBSD.org>
37 */
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/cam/ctl/ctl_backend_block.c 229997 2012-01-12 00:34:33Z ken $");
39__FBSDID("$FreeBSD: head/sys/cam/ctl/ctl_backend_block.c 230334 2012-01-19 18:42:03Z ken $");
40
41#include <opt_kdtrace.h>
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/kernel.h>
46#include <sys/types.h>
47#include <sys/kthread.h>

--- 207 unchanged lines hidden (view full) ---

255 ctl_lun_config_status status);
256static int ctl_be_block_config_write(union ctl_io *io);
257static int ctl_be_block_config_read(union ctl_io *io);
258static int ctl_be_block_lun_info(void *be_lun, struct sbuf *sb);
259int ctl_be_block_init(void);
260
261static struct ctl_backend_driver ctl_be_block_driver =
262{
40
41#include <opt_kdtrace.h>
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/kernel.h>
46#include <sys/types.h>
47#include <sys/kthread.h>

--- 207 unchanged lines hidden (view full) ---

255 ctl_lun_config_status status);
256static int ctl_be_block_config_write(union ctl_io *io);
257static int ctl_be_block_config_read(union ctl_io *io);
258static int ctl_be_block_lun_info(void *be_lun, struct sbuf *sb);
259int ctl_be_block_init(void);
260
261static struct ctl_backend_driver ctl_be_block_driver =
262{
263 name: "block",
264 flags: CTL_BE_FLAG_HAS_CONFIG,
265 init: ctl_be_block_init,
266 data_submit: ctl_be_block_submit,
267 data_move_done: ctl_be_block_move_done,
268 config_read: ctl_be_block_config_read,
269 config_write: ctl_be_block_config_write,
270 ioctl: ctl_be_block_ioctl,
271 lun_info: ctl_be_block_lun_info
263 .name = "block",
264 .flags = CTL_BE_FLAG_HAS_CONFIG,
265 .init = ctl_be_block_init,
266 .data_submit = ctl_be_block_submit,
267 .data_move_done = ctl_be_block_move_done,
268 .config_read = ctl_be_block_config_read,
269 .config_write = ctl_be_block_config_write,
270 .ioctl = ctl_be_block_ioctl,
271 .lun_info = ctl_be_block_lun_info
272};
273
274MALLOC_DEFINE(M_CTLBLK, "ctlblk", "Memory used for CTL block backend");
275CTL_BACKEND_DECLARE(cbb, ctl_be_block_driver);
276
277static struct ctl_be_block_io *
278ctl_alloc_beio(struct ctl_be_block_softc *softc)
279{

--- 1934 unchanged lines hidden ---
272};
273
274MALLOC_DEFINE(M_CTLBLK, "ctlblk", "Memory used for CTL block backend");
275CTL_BACKEND_DECLARE(cbb, ctl_be_block_driver);
276
277static struct ctl_be_block_io *
278ctl_alloc_beio(struct ctl_be_block_softc *softc)
279{

--- 1934 unchanged lines hidden ---