Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_shutdown.c
Show First 20 Lines • Show All 1,258 Lines • ▼ Show 20 Lines | #endif | ||||
return (0); | return (0); | ||||
cleanup: | cleanup: | ||||
free_single_dumper(newdi); | free_single_dumper(newdi); | ||||
return (error); | return (error); | ||||
} | } | ||||
#ifdef DDB | |||||
void | |||||
dumper_ddb_insert_static(struct dumperinfo *newdi) | |||||
{ | |||||
TAILQ_INSERT_HEAD(&dumper_configs, newdi, di_next); | |||||
} | |||||
void | |||||
dumper_ddb_remove_static(struct dumperinfo *di) | |||||
{ | |||||
TAILQ_REMOVE(&dumper_configs, di, di_next); | |||||
} | |||||
#endif | |||||
static bool | static bool | ||||
dumper_config_match(const struct dumperinfo *di, const char *devname, | dumper_config_match(const struct dumperinfo *di, const char *devname, | ||||
const struct diocskerneldump_arg *kda) | const struct diocskerneldump_arg *kda) | ||||
{ | { | ||||
if (kda->kda_index == KDA_REMOVE_ALL) | if (kda->kda_index == KDA_REMOVE_ALL) | ||||
return (true); | return (true); | ||||
if (strcmp(di->di_devname, devname) != 0) | if (strcmp(di->di_devname, devname) != 0) | ||||
▲ Show 20 Lines • Show All 462 Lines • Show Last 20 Lines |