Changeset View
Changeset View
Standalone View
Standalone View
stand/userboot/userboot.h
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | struct loader_callbacks { | ||||
*/ | */ | ||||
/* | /* | ||||
* Read from a disk image at the given offset | * Read from a disk image at the given offset | ||||
*/ | */ | ||||
int (*diskread)(void *arg, int unit, uint64_t offset, | int (*diskread)(void *arg, int unit, uint64_t offset, | ||||
void *dst, size_t size, size_t *resid_return); | void *dst, size_t size, size_t *resid_return); | ||||
/* | /* | ||||
* Write to a disk image at the given offset | |||||
*/ | |||||
int (*diskwrite)(void *arg, int unit, uint64_t offset, | |||||
void *src, size_t size, size_t *resid_return); | |||||
/* | |||||
* Guest virtual machine i/o | * Guest virtual machine i/o | ||||
*/ | */ | ||||
/* | /* | ||||
* Copy to the guest address space | * Copy to the guest address space | ||||
*/ | */ | ||||
int (*copyin)(void *arg, const void *from, | int (*copyin)(void *arg, const void *from, | ||||
uint64_t to, size_t size); | uint64_t to, size_t size); | ||||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |