ctl.c (268687) | ctl.c (268688) |
---|---|
1/*- 2 * Copyright (c) 2003-2009 Silicon Graphics International Corp. 3 * Copyright (c) 2012 The FreeBSD Foundation 4 * All rights reserved. 5 * 6 * Portions of this software were developed by Edward Tomasz Napierala 7 * under sponsorship from the FreeBSD Foundation. 8 * --- 28 unchanged lines hidden (view full) --- 37 * CAM Target Layer, a SCSI device emulation subsystem. 38 * 39 * Author: Ken Merry <ken@FreeBSD.org> 40 */ 41 42#define _CTL_C 43 44#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003-2009 Silicon Graphics International Corp. 3 * Copyright (c) 2012 The FreeBSD Foundation 4 * All rights reserved. 5 * 6 * Portions of this software were developed by Edward Tomasz Napierala 7 * under sponsorship from the FreeBSD Foundation. 8 * --- 28 unchanged lines hidden (view full) --- 37 * CAM Target Layer, a SCSI device emulation subsystem. 38 * 39 * Author: Ken Merry <ken@FreeBSD.org> 40 */ 41 42#define _CTL_C 43 44#include <sys/cdefs.h> |
45__FBSDID("$FreeBSD: stable/10/sys/cam/ctl/ctl.c 268687 2014-07-15 17:09:52Z mav $"); | 45__FBSDID("$FreeBSD: stable/10/sys/cam/ctl/ctl.c 268688 2014-07-15 17:10:48Z mav $"); |
46 47#include <sys/param.h> 48#include <sys/systm.h> 49#include <sys/kernel.h> 50#include <sys/types.h> 51#include <sys/kthread.h> 52#include <sys/bio.h> 53#include <sys/fcntl.h> --- 3195 unchanged lines hidden (view full) --- 3249 if (retval != 0) 3250 break; 3251 3252 retval = sbuf_printf(sb, "\t<wwpn>%#jx</wwpn>\n", 3253 (uintmax_t)port->wwpn); 3254 if (retval != 0) 3255 break; 3256 | 46 47#include <sys/param.h> 48#include <sys/systm.h> 49#include <sys/kernel.h> 50#include <sys/types.h> 51#include <sys/kthread.h> 52#include <sys/bio.h> 53#include <sys/fcntl.h> --- 3195 unchanged lines hidden (view full) --- 3249 if (retval != 0) 3250 break; 3251 3252 retval = sbuf_printf(sb, "\t<wwpn>%#jx</wwpn>\n", 3253 (uintmax_t)port->wwpn); 3254 if (retval != 0) 3255 break; 3256 |
3257 if (port->port_info != NULL) { 3258 retval = port->port_info(port->onoff_arg, sb); 3259 if (retval != 0) 3260 break; 3261 } |
|
3257 STAILQ_FOREACH(opt, &port->options, links) { 3258 retval = sbuf_printf(sb, "\t<%s>%s</%s>\n", 3259 opt->name, opt->value, opt->name); 3260 if (retval != 0) 3261 break; 3262 } 3263 3264 retval = sbuf_printf(sb, "</targ_port>\n"); --- 10565 unchanged lines hidden --- | 3262 STAILQ_FOREACH(opt, &port->options, links) { 3263 retval = sbuf_printf(sb, "\t<%s>%s</%s>\n", 3264 opt->name, opt->value, opt->name); 3265 if (retval != 0) 3266 break; 3267 } 3268 3269 retval = sbuf_printf(sb, "</targ_port>\n"); --- 10565 unchanged lines hidden --- |