Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/conf.h
Context not available. | |||||
EVENTHANDLER_DECLARE(dev_clone, dev_clone_fn); | EVENTHANDLER_DECLARE(dev_clone, dev_clone_fn); | ||||
/* Stuff relating to kernel-dump */ | /* Stuff relating to kernel-dump */ | ||||
struct kerneldumpcrypto; | |||||
struct kerneldumpheader; | |||||
struct dumperinfo { | struct dumperinfo { | ||||
dumper_t *dumper; /* Dumping function. */ | dumper_t *dumper; /* Dumping function. */ | ||||
Context not available. | |||||
u_int maxiosize; /* Max size allowed for an individual I/O */ | u_int maxiosize; /* Max size allowed for an individual I/O */ | ||||
off_t mediaoffset; /* Initial offset in bytes. */ | off_t mediaoffset; /* Initial offset in bytes. */ | ||||
off_t mediasize; /* Space available in bytes. */ | off_t mediasize; /* Space available in bytes. */ | ||||
struct kerneldumpcrypto *kdc; /* Kernel dump crypto. */ | |||||
oshogbo: Aligment? | |||||
Done Inline ActionsThis is just in-memory structure. pjd: This is just in-memory structure. | |||||
}; | }; | ||||
int set_dumper(struct dumperinfo *, const char *_devname, struct thread *td); | int set_dumper(struct dumperinfo *di, const char *devname, struct thread *td, | ||||
uint8_t encrypt, const uint8_t *key, uint32_t encryptedkeysize, | |||||
const uint8_t *encryptedkey); | |||||
int dump_write(struct dumperinfo *, void *, vm_offset_t, off_t, size_t); | int dump_write(struct dumperinfo *, void *, vm_offset_t, off_t, size_t); | ||||
int dump_write_header(struct dumperinfo *di, struct kerneldumpheader *kdh, | |||||
vm_offset_t physical, off_t offset); | |||||
int dump_write_key(struct dumperinfo *di, vm_offset_t physical, off_t offset); | |||||
int doadump(boolean_t); | int doadump(boolean_t); | ||||
extern int dumping; /* system is dumping */ | extern int dumping; /* system is dumping */ | ||||
Context not available. |
Aligment?