debuggers.hg

view linux-2.6-xen-sparse/include/asm-xen/linux-public/xenbus_dev.h @ 6644:29808fef9148

merge?
author cl349@firebug.cl.cam.ac.uk
date Sat Sep 03 18:24:46 2005 +0000 (2005-09-03)
parents 87ea297c1d3a
children b6c98fe62e1a
line source
1 /*
2 * xenbus_dev.h
3 *
4 * Copyright (c) 2005, Christian Limpach
5 *
6 * This file may be distributed separately from the Linux kernel, or
7 * incorporated into other software packages, subject to the following license:
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a copy
10 * of this source file (the "Software"), to deal in the Software without
11 * restriction, including without limitation the rights to use, copy, modify,
12 * merge, publish, distribute, sublicense, and/or sell copies of the Software,
13 * and to permit persons to whom the Software is furnished to do so, subject to
14 * the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included in
17 * all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
25 * IN THE SOFTWARE.
26 */
28 #ifndef _XENBUS_DEV_H_
29 #define _XENBUS_DEV_H_
31 struct xenbus_dev_talkv {
32 enum xsd_sockmsg_type type;
33 const struct kvec *iovec;
34 unsigned int num_vecs;
35 char *buf;
36 unsigned int len;
37 };
39 /*
40 * @cmd: IOCTL_XENBUS_DEV_TALKV
41 * @arg: struct xenbus_dev_talkv
42 * Return: 0 on success, error code on failure.
43 */
44 #define IOCTL_XENBUS_DEV_TALKV \
45 _IOC(_IOC_NONE, 'X', 0, sizeof(struct xenbus_dev_talkv))
47 #endif /* _XENBUS_DEV_H_ */