MCPcopy Create free account
hub / github.com/F-Stack/f-stack / db_read_variable

Function db_read_variable

freebsd/ddb/db_variables.c:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107int
108db_read_variable(struct db_variable *vp, db_expr_t *valuep)
109{
110 db_varfcn_t *func = vp->fcn;
111
112 if (func == FCN_NULL) {
113 *valuep = *(vp->valuep);
114 return (1);
115 }
116 return ((*func)(vp, valuep, DB_VAR_GET));
117}
118
119int
120db_write_variable(struct db_variable *vp, db_expr_t value)

Callers 3

db_get_variableFunction · 0.85
db_set_cmdFunction · 0.85
db_show_regsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected