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 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 
12 #include <ipxe/xen.h>
13 
14 extern __attribute__ (( sentinel )) int
15 xenstore_read ( struct xen_hypervisor *xen, char **value, ... );
16 extern __attribute__ (( sentinel )) int
17 xenstore_read_num ( struct xen_hypervisor *xen, unsigned long *num, ... );
18 extern __attribute__ (( sentinel )) int
19 xenstore_write ( struct xen_hypervisor *xen, const char *value, ... );
20 extern __attribute__ (( sentinel )) int
21 xenstore_write_num ( struct xen_hypervisor *xen, unsigned long num, ... );
22 extern __attribute__ (( sentinel )) int
23 xenstore_rm ( struct xen_hypervisor *xen, ... );
24 extern __attribute__ (( sentinel )) int
25 xenstore_directory ( struct xen_hypervisor *xen, char **children, size_t *len,
26  ... );
27 extern void xenstore_dump ( struct xen_hypervisor *xen, const char *key );
28 
29 #endif /* _IPXE_XENSTORE_H */
__attribute__((sentinel)) int xenstore_read(struct xen_hypervisor *xen
int xenstore_read(struct xen_hypervisor *xen, char **value,...)
Read XenStore value.
Definition: xenstore.c:371
char ** value
Definition: xenstore.h:15
int xenstore_write_num(struct xen_hypervisor *xen, unsigned long num,...)
Write XenStore numeric value.
Definition: xenstore.c:460
int xenstore_write(struct xen_hypervisor *xen, const char *value,...)
Write XenStore value.
Definition: xenstore.c:441
A Xen hypervisor.
Definition: xen.h:51
Xen interface.
char unsigned long const char unsigned long char ** children
Definition: xenstore.h:25
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:520
char unsigned long const char unsigned long char size_t * len
Definition: xenstore.h:25
char unsigned long * num
Definition: xenstore.h:17
int xenstore_directory(struct xen_hypervisor *xen, char **children, size_t *len,...)
Read XenStore directory.
Definition: xenstore.c:503
int xenstore_read_num(struct xen_hypervisor *xen, unsigned long *num,...)
Read XenStore numeric value.
Definition: xenstore.c:390
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
int xenstore_rm(struct xen_hypervisor *xen,...)
Delete XenStore value.
Definition: xenstore.c:483
union @375 key
Sense key.
Definition: scsi.h:18