Changeset View
Changeset View
Standalone View
Standalone View
sys/ddb/db_variables.c
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | static struct db_variable db_vars[] = { | ||||
{ "maxwidth", &db_max_width, FCN_NULL }, | { "maxwidth", &db_max_width, FCN_NULL }, | ||||
{ "tabstops", &db_tab_stop_width, FCN_NULL }, | { "tabstops", &db_tab_stop_width, FCN_NULL }, | ||||
{ "lines", &db_lines_per_page, FCN_NULL }, | { "lines", &db_lines_per_page, FCN_NULL }, | ||||
{ "curcpu", NULL, db_var_curcpu }, | { "curcpu", NULL, db_var_curcpu }, | ||||
{ "db_cpu", NULL, db_var_db_cpu }, | { "db_cpu", NULL, db_var_db_cpu }, | ||||
#ifdef VIMAGE | #ifdef VIMAGE | ||||
{ "curvnet", NULL, db_var_curvnet }, | { "curvnet", NULL, db_var_curvnet }, | ||||
{ "db_vnet", NULL, db_var_db_vnet }, | { "db_vnet", NULL, db_var_db_vnet }, | ||||
{ "curvps", NULL, db_var_curvps }, | |||||
{ "db_vps", NULL, db_var_db_vps }, | |||||
#endif | #endif | ||||
}; | }; | ||||
static struct db_variable *db_evars = db_vars + nitems(db_vars); | static struct db_variable *db_evars = db_vars + nitems(db_vars); | ||||
static int | static int | ||||
db_find_variable(struct db_variable **varp) | db_find_variable(struct db_variable **varp) | ||||
{ | { | ||||
struct db_variable *vp; | struct db_variable *vp; | ||||
▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines |