Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/kern_linker.c
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
#ifdef KLD_DEBUG | #ifdef KLD_DEBUG | ||||
int kld_debug = 0; | int kld_debug = 0; | ||||
SYSCTL_INT(_debug, OID_AUTO, kld_debug, CTLFLAG_RWTUN, | SYSCTL_INT(_debug, OID_AUTO, kld_debug, CTLFLAG_RWTUN, | ||||
&kld_debug, 0, "Set various levels of KLD debug"); | &kld_debug, 0, "Set various levels of KLD debug"); | ||||
#endif | #endif | ||||
/* These variables are used by kernel debuggers to enumerate loaded files. */ | |||||
const int kld_off_address = offsetof(struct linker_file, address); | |||||
const int kld_off_filename = offsetof(struct linker_file, filename); | |||||
const int kld_off_pathname = offsetof(struct linker_file, pathname); | |||||
const int kld_off_next = offsetof(struct linker_file, link.tqe_next); | |||||
/* | /* | ||||
* static char *linker_search_path(const char *name, struct mod_depend | * static char *linker_search_path(const char *name, struct mod_depend | ||||
* *verinfo); | * *verinfo); | ||||
*/ | */ | ||||
static const char *linker_basename(const char *path); | static const char *linker_basename(const char *path); | ||||
/* | /* | ||||
* Find a currently loaded file given its filename. | * Find a currently loaded file given its filename. | ||||
▲ Show 20 Lines • Show All 2,064 Lines • Show Last 20 Lines |