mt_rpcinit.c revision 8ffff9fd48b21b34cfd2ed5bf7610fa2d6cb3e64
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 */
/*
*/
/*
* rpcstat_zone_[init|fini]_common() ends up being nearly identical to
* nfsstat_zone_[init|fini]_common(). Due to them necessarily being in
* different modules, however, we end up needing to duplicate the code.
*/
{
/*
* PSARC 2001/697 Contract Private Interface
* rpc_clts_client
* rpc_cots_client
* Changes must be reviewed by Solaris File Sharing
* Changes must be communicated to contract-2001-697@sun.com
*
*/
}
return (ks_data);
}
void
{
}
static void *
{
return (rpcstat);
}
/*
* Deletes the previously allocated "rpc" kstats
*/
static void
{
}
void
mt_kstat_init(void)
{
}
void
mt_kstat_fini(void)
{
(void) zone_key_delete(rpcstat_zone_key);
}
alloc_xid(void)
{
/*
* Do a one time initialzation to better utilize the number
* space.
*/
if (clnt_xid_initialized == FALSE) {
gethrestime(&now);
}
/*
* Don't return a zero xid. This could happen if the initialization
* happens to return zero or if clnt_xid wraps.
*/
if (xid == 0)
return (xid);
}
/*
* These functions are temporary and designed for the upgrade-workaround only.
* They cannot be used for general zone-crossing RPC client support, and will
* be removed shortly.
*
* Currently these functions route all nfs global clients to the global zone.
* When this upgrade-workaround is removed these function should return the
* correct zone or their calls should be changed (rpc_zone() to curproc->p_zone
* and rpc_zoneid() to getzoneid()).
*/
struct zone *
rpc_zone(void)
{
}
rpc_zoneid(void)
{
}