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 FILE_SECBOOT ( PERMITTED );
12 
13 #include <ipxe/xen.h>
14 
15 extern __attribute__ (( sentinel )) int
16 xenstore_read ( struct xen_hypervisor *xen, char **value, ... );
17 extern __attribute__ (( sentinel )) int
18 xenstore_read_num ( struct xen_hypervisor *xen, unsigned long *num, ... );
19 extern __attribute__ (( sentinel )) int
20 xenstore_write ( struct xen_hypervisor *xen, const char *value, ... );
21 extern __attribute__ (( sentinel )) int
22 xenstore_write_num ( struct xen_hypervisor *xen, unsigned long num, ... );
23 extern __attribute__ (( sentinel )) int
24 xenstore_rm ( struct xen_hypervisor *xen, ... );
25 extern __attribute__ (( sentinel )) int
26 xenstore_directory ( struct xen_hypervisor *xen, char **children, size_t *len,
27  ... );
28 extern void xenstore_dump ( struct xen_hypervisor *xen, const char *key );
29 
30 #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:372
char ** value
Definition: xenstore.h:16
int xenstore_write_num(struct xen_hypervisor *xen, unsigned long num,...)
Write XenStore numeric value.
Definition: xenstore.c:461
int xenstore_write(struct xen_hypervisor *xen, const char *value,...)
Write XenStore value.
Definition: xenstore.c:442
A Xen hypervisor.
Definition: xen.h:51
Xen interface.
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
char unsigned long const char unsigned long char size_t * len
Definition: xenstore.h:26
char unsigned long * num
Definition: xenstore.h:18
int xenstore_directory(struct xen_hypervisor *xen, char **children, size_t *len,...)
Read XenStore directory.
Definition: xenstore.c:504
int xenstore_read_num(struct xen_hypervisor *xen, unsigned long *num,...)
Read XenStore numeric value.
Definition: xenstore.c:391
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
FILE_SECBOOT(PERMITTED)
int xenstore_rm(struct xen_hypervisor *xen,...)
Delete XenStore value.
Definition: xenstore.c:484
union @391 key
Sense key.
Definition: scsi.h:18