scsi_target.c (168752) | scsi_target.c (183381) |
---|---|
1/*- 2 * Generic SCSI Target Kernel Mode Driver 3 * 4 * Copyright (c) 2002 Nate Lawson. 5 * Copyright (c) 1998, 1999, 2001, 2002 Justin T. Gibbs. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Generic SCSI Target Kernel Mode Driver 3 * 4 * Copyright (c) 2002 Nate Lawson. 5 * Copyright (c) 1998, 1999, 2001, 2002 Justin T. Gibbs. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/cam/scsi/scsi_target.c 168752 2007-04-15 08:49:19Z scottl $"); | 31__FBSDID("$FreeBSD: head/sys/cam/scsi/scsi_target.c 183381 2008-09-26 14:19:52Z ed $"); |
32 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/kernel.h> 37#include <sys/conf.h> 38#include <sys/malloc.h> 39#include <sys/poll.h> --- 986 unchanged lines hidden (view full) --- 1026 struct cdev **dev) 1027{ 1028 int u; 1029 1030 if (*dev != NULL) 1031 return; 1032 if (dev_stdclone(name, NULL, "targ", &u) != 1) 1033 return; | 32 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/kernel.h> 37#include <sys/conf.h> 38#include <sys/malloc.h> 39#include <sys/poll.h> --- 986 unchanged lines hidden (view full) --- 1026 struct cdev **dev) 1027{ 1028 int u; 1029 1030 if (*dev != NULL) 1031 return; 1032 if (dev_stdclone(name, NULL, "targ", &u) != 1) 1033 return; |
1034 *dev = make_dev(&targ_cdevsw, unit2minor(u), UID_ROOT, GID_WHEEL, | 1034 *dev = make_dev(&targ_cdevsw, u, UID_ROOT, GID_WHEEL, |
1035 0600, "targ%d", u); 1036 dev_ref(*dev); 1037 (*dev)->si_flags |= SI_CHEAPCLONE; 1038} 1039 1040static void 1041targasync(void *callback_arg, u_int32_t code, struct cam_path *path, void *arg) 1042{ --- 145 unchanged lines hidden --- | 1035 0600, "targ%d", u); 1036 dev_ref(*dev); 1037 (*dev)->si_flags |= SI_CHEAPCLONE; 1038} 1039 1040static void 1041targasync(void *callback_arg, u_int32_t code, struct cam_path *path, void *arg) 1042{ --- 145 unchanged lines hidden --- |