Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/conf.h
Show First 20 Lines • Show All 336 Lines • ▼ Show 20 Lines | struct dumperinfo { | ||||
off_t mediasize; /* Space available in bytes. */ | off_t mediasize; /* Space available in bytes. */ | ||||
void *blockbuf; /* Buffer for padding shorter dump blocks */ | void *blockbuf; /* Buffer for padding shorter dump blocks */ | ||||
struct kerneldumpcrypto *kdc; /* Kernel dump crypto. */ | struct kerneldumpcrypto *kdc; /* Kernel dump crypto. */ | ||||
}; | }; | ||||
int set_dumper(struct dumperinfo *di, 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, | uint8_t encrypt, const uint8_t *key, uint32_t encryptedkeysize, | ||||
const uint8_t *encryptedkey); | const uint8_t *encryptedkey); | ||||
int dump_start(struct dumperinfo *di, struct kerneldumpheader *kdh, | |||||
off_t *dumplop); | |||||
int dump_finish(struct dumperinfo *di, struct kerneldumpheader *kdh, | |||||
off_t dumplo); | |||||
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_pad(struct dumperinfo *, void *, vm_offset_t, off_t, size_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 */ | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* !_SYS_CONF_H_ */ | #endif /* !_SYS_CONF_H_ */ |