Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/conf.h
Show First 20 Lines • Show All 322 Lines • ▼ Show 20 Lines | |||||
int dev_stdclone(char *_name, char **_namep, const char *_stem, int *_unit); | int dev_stdclone(char *_name, char **_namep, const char *_stem, int *_unit); | ||||
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 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 */ | |||||
}; | }; | ||||
int set_dumper(struct dumperinfo *, const char *_devname, struct thread *td); | int set_dumper(struct dumperinfo *, const char *_devname, struct thread *td); | ||||
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 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_ */ |