iPXE
xenstore.h
Go to the documentation of this file.
1#ifndef _IPXE_XENSTORE_H
2#define _IPXE_XENSTORE_H
3
4/** @file
5 *
6 * XenStore interface
7 *
8 */
9
10FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11FILE_SECBOOT ( PERMITTED );
12
13#include <ipxe/xen.h>
14
15extern __attribute__ (( sentinel )) int
16xenstore_read ( struct xen_hypervisor *xen, char **value, ... );
17extern __attribute__ (( sentinel )) int
18xenstore_read_num ( struct xen_hypervisor *xen, unsigned long *num, ... );
19extern __attribute__ (( sentinel )) int
20xenstore_write ( struct xen_hypervisor *xen, const char *value, ... );
21extern __attribute__ (( sentinel )) int
22xenstore_write_num ( struct xen_hypervisor *xen, unsigned long num, ... );
23extern __attribute__ (( sentinel )) int
24xenstore_rm ( struct xen_hypervisor *xen, ... );
25extern __attribute__ (( sentinel )) int
26xenstore_directory ( struct xen_hypervisor *xen, char **children, size_t *len,
27 ... );
28extern void xenstore_dump ( struct xen_hypervisor *xen, const char *key );
29
30#endif /* _IPXE_XENSTORE_H */
union @162305117151260234136356364136041353210355154177 key
Sense key.
Definition scsi.h:3
pseudo_bit_t value[0x00020]
Definition arbel.h:2
ring len
Length.
Definition dwmac.h:226
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
#define __attribute__(x)
Definition compiler.h:10
Xen interface.
uint32_t num
Definition multiboot.h:0
A Xen hypervisor.
Definition xen.h:51
int xenstore_directory(struct xen_hypervisor *xen, char **children, size_t *len,...)
Read XenStore directory.
Definition xenstore.c:504
int xenstore_rm(struct xen_hypervisor *xen,...)
Delete XenStore value.
Definition xenstore.c:484
int xenstore_read(struct xen_hypervisor *xen, char **value,...)
Read XenStore value.
Definition xenstore.c:372
int xenstore_read_num(struct xen_hypervisor *xen, unsigned long *num,...)
Read XenStore numeric value.
Definition xenstore.c:391
int xenstore_write(struct xen_hypervisor *xen, const char *value,...)
Write XenStore value.
Definition xenstore.c:442
int xenstore_write_num(struct xen_hypervisor *xen, unsigned long num,...)
Write XenStore numeric value.
Definition xenstore.c:461
char unsigned long const char unsigned long char ** children
Definition xenstore.h:26
char unsigned long const char unsigned long char size_t void xenstore_dump(struct xen_hypervisor *xen, const char *key)
Dump XenStore directory contents (for debugging)
Definition xenstore.c:521