Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/conf.h
Show First 20 Lines • Show All 330 Lines • ▼ Show 20 Lines | |||||
struct dumperinfo { | struct dumperinfo { | ||||
dumper_t *dumper; /* Dumping function. */ | dumper_t *dumper; /* Dumping function. */ | ||||
void *priv; /* Private parts. */ | void *priv; /* Private parts. */ | ||||
u_int blocksize; /* Size of block in bytes. */ | u_int blocksize; /* Size of block in bytes. */ | ||||
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. */ | ||||
void *blockbuf; /* Buffer for padding shorter dump blocks */ | void *blockbuf; /* Buffer for padding shorter dump blocks */ | ||||
off_t dumpoff; /* Offset of ongoing kernel dump. */ | |||||
struct kerneldumpcrypto *kdc; /* Kernel dump crypto. */ | struct kerneldumpcrypto *kdc; /* Kernel dump crypto. */ | ||||
}; | }; | ||||
extern int dumping; /* system is dumping */ | |||||
int doadump(boolean_t); | |||||
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); | |||||
int dump_append(struct dumperinfo *, void *, vm_offset_t, size_t); | |||||
int dump_write(struct dumperinfo *, void *, vm_offset_t, off_t, size_t); | |||||
int dump_finish(struct dumperinfo *di, struct kerneldumpheader *kdh); | |||||
void dump_init_header(const struct dumperinfo *di, struct kerneldumpheader *kdh, | void dump_init_header(const struct dumperinfo *di, struct kerneldumpheader *kdh, | ||||
char *magic, uint32_t archver, uint64_t dumplen); | char *magic, uint32_t archver, uint64_t dumplen); | ||||
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 doadump(boolean_t); | |||||
extern int dumping; /* system is dumping */ | |||||
def: I would keep this list in the same order as in a source file. | |||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* !_SYS_CONF_H_ */ | #endif /* !_SYS_CONF_H_ */ |
I would keep this list in the same order as in a source file.