cfsd_all.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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) 1994-2001 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Methods for the cfsd_all class.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <thread.h>
#include <synch.h>
#include <locale.h>
#include <errno.h>
#include "cfsd.h"
#include "cfsd_kmod.h"
#include "cfsd_maptbl.h"
#include "cfsd_logfile.h"
#include "cfsd_fscache.h"
#include "cfsd_cache.h"
#include "cfsd_all.h"
/*
* ------------------------------------------------------------
* cfsd_all_create
*
* Description:
* Arguments:
* Returns:
* Preconditions:
*/
cfsd_all_create(void)
{
/* get the host name */
int xx;
char buffer[MAXPATHLEN];
dbug_enter("cfsd_all_create");
if (xx == -1) {
sizeof (all_object_p->i_machname));
} else {
sizeof (all_object_p->i_machname));
}
/* initialize the locking mutex */
dbug_assert(xx == 0);
all_object_p->i_nextcacheid = 0;
all_object_p->i_cachecount = 0;
/* all_object_p->i_hoardp = NULL; */
dbug_leave("cfsd_all_create");
return (all_object_p);
}
/*
* ------------------------------------------------------------
* cfsd_all_destroy
*
* Description:
* Arguments:
* Returns:
* Preconditions:
*/
void
{
int xx;
dbug_enter("cfsd_all_destroy");
/* dbug_assert(all_object_p->i_hoardp == NULL); */
/* get rid of any cache objects */
while (cache_object_p != NULL) {
}
/* destroy the locking mutex */
dbug_assert(xx == 0);
dbug_leave("cfsd_all_destroy");
}
/*
* ------------------------------------------------------------
* all_lock
*
* Description:
* Arguments:
* Returns:
* Preconditions:
*/
void
{
dbug_enter("all_lock");
dbug_leave("all_lock");
}
/*
* ------------------------------------------------------------
* all_unlock
*
* Description:
* Arguments:
* Returns:
* Preconditions:
*/
void
{
dbug_enter("all_unlock");
dbug_leave("all_unlock");
}
/*
* ------------------------------------------------------------
* all_cachelist_at
*
* Description:
* Arguments:
* index
* Returns:
* Returns ...
* Preconditions:
*/
{
int i = 0;
dbug_enter("all_cachelist_at");
/* find the correct cache object */
}
dbug_leave("all_cachelist_at");
return (cache_object_p);
}
/*
* ------------------------------------------------------------
* all_cachelist_add
*
* Description:
* Arguments:
* cachep
* Returns:
* Preconditions:
* precond(cachep)
*/
void
{
dbug_enter("all_cachelist_add");
all_object_p->i_modify++;
dbug_leave("all_cachelist_add");
}
/*
* ------------------------------------------------------------
* all_cachelist_find
*
* Description:
* Arguments:
* namep
* Returns:
* Returns ...
* Preconditions:
* precond(namep)
*/
{
dbug_enter("all_cachelist_find");
/* find the correct cache object */
while ((cache_object_p != NULL) &&
}
dbug_leave("all_cachelist_find");
return (cache_object_p);
}
/*
* ------------------------------------------------------------
* all_cachefstab_update
*
* Description:
* Arguments:
* Returns:
* Preconditions:
*/
void
{
dbug_enter("all_cachefstab_update");
} else {
while (cache_object_p != NULL) {
}
CACHEFSTAB, errno));
}
dbug_leave("all_cachefstab_update");
}