FreeBSD/sys/ddb/db_sym.c
/*
 * Validate the virtual network pointer used to interpret per-vnet global
 * variable expansion.  Right now we don't do much here, really we should
 * walk the global vnet list to check it's an OK pointer.
 */
Validate the virtual network pointer used to interpret per-vnet global
variable expansion.  Right now we don't do much here, really we should
walk the global vnet list to check it's an OK pointer.
Validate the virtual network pointer used to interpret per - vnet global variable expansion . Right now we don ' t do much here really we should walk the global vnet list to check it ' s an OK pointer .
int
db_var_db_vnet(struct db_variable *vp, db_expr_t *valuep, int op)
{
	switch (op) {
	case DB_VAR_GET:
		*valuep = (db_expr_t)db_vnet;
		return (1);
	case DB_VAR_SET:
		db_vnet = *(void **)valuep;
		return (1);
	default:
		db_printf("db_var_db_vnet: unknown operation\n");
		return (0);
	}
}
int db_var_db_vnet ( struct db_variable * vp , db_expr_t * valuep , int op ) { switch ( op ) { case DB_VAR_GET : * valuep = ( db_expr_t ) db_vnet ; return ( 1 ) ; case DB_VAR_SET : db_vnet = * ( void * * ) valuep ; return ( 1 ) ; default : db_printf ( " \n " ) ; return ( 0 ) ; } }
Validate the virtual network pointer used to interpret per-vnet global
 variable expansion.
Validate the virtual network pointer used to interpret per - vnet global variable expansion .