Deleted Added
full compact
xenbusb.c (214077) xenbusb.c (217566)
1/******************************************************************************
2 * Copyright (C) 2010 Spectra Logic Corporation
3 * Copyright (C) 2008 Doug Rabson
4 * Copyright (C) 2005 Rusty Russell, IBM Corporation
5 * Copyright (C) 2005 Mike Wray, Hewlett-Packard
6 * Copyright (C) 2005 XenSource Ltd
7 *
8 * This file may be distributed separately from the Linux kernel, or

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

47 * xbd0
48 * xbd1
49 * xenbusb_back0/
50 * xbbd0
51 * xnb0
52 * xnb1
53 */
54#include <sys/cdefs.h>
1/******************************************************************************
2 * Copyright (C) 2010 Spectra Logic Corporation
3 * Copyright (C) 2008 Doug Rabson
4 * Copyright (C) 2005 Rusty Russell, IBM Corporation
5 * Copyright (C) 2005 Mike Wray, Hewlett-Packard
6 * Copyright (C) 2005 XenSource Ltd
7 *
8 * This file may be distributed separately from the Linux kernel, or

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

47 * xbd0
48 * xbd1
49 * xenbusb_back0/
50 * xbbd0
51 * xnb0
52 * xnb1
53 */
54#include <sys/cdefs.h>
55__FBSDID("$FreeBSD: head/sys/xen/xenbus/xenbusb.c 214077 2010-10-19 20:53:30Z gibbs $");
55__FBSDID("$FreeBSD: head/sys/xen/xenbus/xenbusb.c 217566 2011-01-19 00:57:58Z mdf $");
56
57#include <sys/param.h>
58#include <sys/bus.h>
59#include <sys/kernel.h>
60#include <sys/lock.h>
61#include <sys/malloc.h>
62#include <sys/module.h>
63#include <sys/sbuf.h>

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

303
304 ctx = device_get_sysctl_ctx(dev);
305 tree = device_get_sysctl_tree(dev);
306
307 SYSCTL_ADD_PROC(ctx,
308 SYSCTL_CHILDREN(tree),
309 OID_AUTO,
310 "xenstore_path",
56
57#include <sys/param.h>
58#include <sys/bus.h>
59#include <sys/kernel.h>
60#include <sys/lock.h>
61#include <sys/malloc.h>
62#include <sys/module.h>
63#include <sys/sbuf.h>

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

303
304 ctx = device_get_sysctl_ctx(dev);
305 tree = device_get_sysctl_tree(dev);
306
307 SYSCTL_ADD_PROC(ctx,
308 SYSCTL_CHILDREN(tree),
309 OID_AUTO,
310 "xenstore_path",
311 CTLFLAG_RD,
311 CTLTYPE_STRING | CTLFLAG_RD,
312 dev,
313 XENBUS_IVAR_NODE,
314 xenbusb_device_sysctl_handler,
315 "A",
316 "XenStore path to device");
317
318 SYSCTL_ADD_PROC(ctx,
319 SYSCTL_CHILDREN(tree),
320 OID_AUTO,
321 "xenbus_dev_type",
312 dev,
313 XENBUS_IVAR_NODE,
314 xenbusb_device_sysctl_handler,
315 "A",
316 "XenStore path to device");
317
318 SYSCTL_ADD_PROC(ctx,
319 SYSCTL_CHILDREN(tree),
320 OID_AUTO,
321 "xenbus_dev_type",
322 CTLFLAG_RD,
322 CTLTYPE_STRING | CTLFLAG_RD,
323 dev,
324 XENBUS_IVAR_TYPE,
325 xenbusb_device_sysctl_handler,
326 "A",
327 "XenBus device type");
328
329 SYSCTL_ADD_PROC(ctx,
330 SYSCTL_CHILDREN(tree),
331 OID_AUTO,
332 "xenbus_connection_state",
323 dev,
324 XENBUS_IVAR_TYPE,
325 xenbusb_device_sysctl_handler,
326 "A",
327 "XenBus device type");
328
329 SYSCTL_ADD_PROC(ctx,
330 SYSCTL_CHILDREN(tree),
331 OID_AUTO,
332 "xenbus_connection_state",
333 CTLFLAG_RD,
333 CTLTYPE_STRING | CTLFLAG_RD,
334 dev,
335 XENBUS_IVAR_STATE,
336 xenbusb_device_sysctl_handler,
337 "A",
338 "XenBus state of peer connection");
339
340 SYSCTL_ADD_PROC(ctx,
341 SYSCTL_CHILDREN(tree),
342 OID_AUTO,
343 "xenbus_peer_domid",
334 dev,
335 XENBUS_IVAR_STATE,
336 xenbusb_device_sysctl_handler,
337 "A",
338 "XenBus state of peer connection");
339
340 SYSCTL_ADD_PROC(ctx,
341 SYSCTL_CHILDREN(tree),
342 OID_AUTO,
343 "xenbus_peer_domid",
344 CTLFLAG_RD,
344 CTLTYPE_INT | CTLFLAG_RD,
345 dev,
346 XENBUS_IVAR_OTHEREND_ID,
347 xenbusb_device_sysctl_handler,
348 "I",
349 "Xen domain ID of peer");
350
351 SYSCTL_ADD_PROC(ctx,
352 SYSCTL_CHILDREN(tree),
353 OID_AUTO,
354 "xenstore_peer_path",
345 dev,
346 XENBUS_IVAR_OTHEREND_ID,
347 xenbusb_device_sysctl_handler,
348 "I",
349 "Xen domain ID of peer");
350
351 SYSCTL_ADD_PROC(ctx,
352 SYSCTL_CHILDREN(tree),
353 OID_AUTO,
354 "xenstore_peer_path",
355 CTLFLAG_RD,
355 CTLTYPE_STRING | CTLFLAG_RD,
356 dev,
357 XENBUS_IVAR_OTHEREND_PATH,
358 xenbusb_device_sysctl_handler,
359 "A",
360 "XenStore path to peer device");
361}
362
363/**

--- 515 unchanged lines hidden ---
356 dev,
357 XENBUS_IVAR_OTHEREND_PATH,
358 xenbusb_device_sysctl_handler,
359 "A",
360 "XenStore path to peer device");
361}
362
363/**

--- 515 unchanged lines hidden ---