netback.c (316007) | netback.c (316362) |
---|---|
1/*- 2 * Copyright (c) 2009-2011 Spectra Logic Corporation 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 19 unchanged lines hidden (view full) --- 28 * POSSIBILITY OF SUCH DAMAGES. 29 * 30 * Authors: Justin T. Gibbs (Spectra Logic Corporation) 31 * Alan Somers (Spectra Logic Corporation) 32 * John Suykerbuyk (Spectra Logic Corporation) 33 */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009-2011 Spectra Logic Corporation 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 19 unchanged lines hidden (view full) --- 28 * POSSIBILITY OF SUCH DAMAGES. 29 * 30 * Authors: Justin T. Gibbs (Spectra Logic Corporation) 31 * Alan Somers (Spectra Logic Corporation) 32 * John Suykerbuyk (Spectra Logic Corporation) 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: stable/11/sys/dev/xen/netback/netback.c 316007 2017-03-27 01:06:25Z kevlo $"); | 36__FBSDID("$FreeBSD: stable/11/sys/dev/xen/netback/netback.c 316362 2017-04-01 16:51:49Z asomers $"); |
37 38/** 39 * \file netback.c 40 * 41 * \brief Device driver supporting the vending of network access 42 * from this FreeBSD domain to other domains. 43 */ 44#include "opt_inet.h" --- 1051 unchanged lines hidden (view full) --- 1096 va_list ap; 1097 va_list ap_hotplug; 1098 1099 va_start(ap, fmt); 1100 va_copy(ap_hotplug, ap); 1101 xs_vprintf(XST_NIL, xenbus_get_node(xnb->dev), 1102 "hotplug-error", fmt, ap_hotplug); 1103 va_end(ap_hotplug); | 37 38/** 39 * \file netback.c 40 * 41 * \brief Device driver supporting the vending of network access 42 * from this FreeBSD domain to other domains. 43 */ 44#include "opt_inet.h" --- 1051 unchanged lines hidden (view full) --- 1096 va_list ap; 1097 va_list ap_hotplug; 1098 1099 va_start(ap, fmt); 1100 va_copy(ap_hotplug, ap); 1101 xs_vprintf(XST_NIL, xenbus_get_node(xnb->dev), 1102 "hotplug-error", fmt, ap_hotplug); 1103 va_end(ap_hotplug); |
1104 xs_printf(XST_NIL, xenbus_get_node(xnb->dev), | 1104 (void)xs_printf(XST_NIL, xenbus_get_node(xnb->dev), |
1105 "hotplug-status", "error"); 1106 1107 xenbus_dev_vfatal(xnb->dev, err, fmt, ap); 1108 va_end(ap); 1109 | 1105 "hotplug-status", "error"); 1106 1107 xenbus_dev_vfatal(xnb->dev, err, fmt, ap); 1108 va_end(ap); 1109 |
1110 xs_printf(XST_NIL, xenbus_get_node(xnb->dev), 1111 "online", "0"); | 1110 (void)xs_printf(XST_NIL, xenbus_get_node(xnb->dev), "online", "0"); |
1112 xnb_detach(xnb->dev); 1113} 1114 1115/*---------------------------- NewBus Entrypoints ----------------------------*/ 1116/** 1117 * Inspect a XenBus device and claim it if is of the appropriate type. 1118 * 1119 * \param dev NewBus device object representing a candidate XenBus device. --- 1397 unchanged lines hidden --- | 1111 xnb_detach(xnb->dev); 1112} 1113 1114/*---------------------------- NewBus Entrypoints ----------------------------*/ 1115/** 1116 * Inspect a XenBus device and claim it if is of the appropriate type. 1117 * 1118 * \param dev NewBus device object representing a candidate XenBus device. --- 1397 unchanged lines hidden --- |