/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1985-2001 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Vuid_store.c - Implement the vuid_store.h event storage interface.
*/
#include <sys/vuid_event.h>
#include <sys/vuid_state.h>
#include <sys/vuid_store.h>
static void vuid_destroy_seg();
static Vuid_seg * vuid_copy_seg();
static Vuid_seg * vuid_find_seg();
static Vuid_value * vuid_add_value();
static Vuid_value * vuid_find_value();
#ifdef _KERNEL
#else
#endif /* _KERNEL */
void
register Firm_event *event;
{
/* Get (search for) seg from state assoicated with event */
/* Allocate and initialize new seg for event */
/* Add the seg to state */
}
/* See if no value node and event value is not boolean */
int_bit = 1;
}
/* If boolean event then set boolean bit */
if (!int_bit) {
else
} else {
/* Get (search for) value node (should be there) */
case FE_PAIR_DELTA:
/* See if value node for pair */
/* Get (search for) value node (should be there) */
/* Set pair value to difference */
break;
case FE_PAIR_ABSOLUTE:
/* See if value node for pair */
/* Get (search for) value node (should be there) */
/* Add event value to pair value */
break;
default:
{}
}
}
/* Recursively call vuid_set_value if there is an associated pair */
pair_event = *event;
pair_event.pair = 0;
}
}
int
{
/* Get (search for) seg from state assoicated with id */
return (0);
/* If boolean event (i.e., no ints bit on) then return boolean value */
else {
/* Get (search for) value node and return value */
}
}
void
{
}
}
static void
{
}
}
{
/* Remember first seg as state */
if (new_first_seg == VUID_SEG_NULL)
/* Link segs together */
if (new_previous_seg != VUID_SEG_NULL)
/* Remember seg for linking later */
}
return ((Vuid_state) new_first_seg);
}
static Vuid_seg *
{
/* Allocate and initialize new seg for event */
/* Terminate new pointer with null */
/* Copy list elements */
/* Remember first value as head of list */
/* Link vals together */
if (new_previous_val != VUID_VALUE_NULL)
/* Remember val for linking later */
}
return (new_seg);
}
static Vuid_seg *
{
return (seg);
}
return (VUID_SEG_NULL);
}
static Vuid_value *
{
return (val_node);
}
return (VUID_VALUE_NULL);
}
static Vuid_value *
{
/* Allocate and initialize new value node for event */
/* Add the value node to list */
/* Clear boolean bit for event */
return (val_node);
}