Changeset View
Changeset View
Standalone View
Standalone View
sys/ddb/ddb.h
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | |||||
struct db_command { | struct db_command { | ||||
char * name; /* command name */ | char * name; /* command name */ | ||||
db_cmdfcn_t *fcn; /* function to call */ | db_cmdfcn_t *fcn; /* function to call */ | ||||
int flag; /* extra info: */ | int flag; /* extra info: */ | ||||
#define CS_OWN 0x1 /* non-standard syntax */ | #define CS_OWN 0x1 /* non-standard syntax */ | ||||
#define CS_MORE 0x2 /* standard syntax, but may have other words | #define CS_MORE 0x2 /* standard syntax, but may have other words | ||||
* at end */ | * at end */ | ||||
#define CS_SET_DOT 0x100 /* set dot after command */ | #define CS_SET_DOT 0x100 /* set dot after command */ | ||||
#define DB_MAC1 0x10000 /* For MAC policy use */ | |||||
#define DB_MAC2 0x20000 | |||||
struct db_command_table *more; /* another level of command */ | struct db_command_table *more; /* another level of command */ | ||||
LIST_ENTRY(db_command) next; /* next entry in the command table */ | LIST_ENTRY(db_command) next; /* next entry in the command table */ | ||||
void *mac_priv; /* For MAC policy use */ | |||||
}; | }; | ||||
/* | /* | ||||
* Arrange for the specified ddb command to be defined and | * Arrange for the specified ddb command to be defined and | ||||
* bound to the specified function. Commands can be defined | * bound to the specified function. Commands can be defined | ||||
* in modules in which case they will be available only when | * in modules in which case they will be available only when | ||||
* the module is loaded. | * the module is loaded. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 171 Lines • Show Last 20 Lines |