summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/modhash.c
diff options
context:
space:
mode:
authorgjelinek <none@none>2006-12-14 13:35:17 -0800
committergjelinek <none@none>2006-12-14 13:35:17 -0800
commit0209230bf1261579beab4f55226bb509e6b850cb (patch)
treec605b4105191d5a10962c524ad08019742cd52cb /usr/src/uts/common/os/modhash.c
parent780774645a5b1b0176916fc66312dc1d9b4d14b4 (diff)
downloadillumos-joyent-0209230bf1261579beab4f55226bb509e6b850cb.tar.gz
PSARC 2006/496 Improved Zones/RM Integration
PSARC 2006/598 Swap resource control; locked memory RM improvements PSARC 2006/660 rcapadm zone option 4754856 *prstat* prstat -atJTZ should count shared segments only once 4970603 RFE: should be able to persistently specify global zone's cpu shares 5026227 RFE: ability to rcap zones from global zone 5103071 RFE: local zones can run the global zone out of swap 6222025 RFE: simplify rctl syntax and improve cpu-shares/FSS interaction 6420985 rcapstat is broken on amd64 6421202 RFE: simplify and improve zones/pool integration 6442252 zonecfg's "unset" syntax is not documented and confusing 6490516 schedctl pages should not reserve swap 6490938 setproject can bind to the wrong pool 6498635 zone attach failure leaves zone in installed state 6500877 tmpfs syslogs incorrect path when non-global zone tmpfs mounts become full
Diffstat (limited to 'usr/src/uts/common/os/modhash.c')
-rw-r--r--usr/src/uts/common/os/modhash.c24
1 files changed, 7 insertions, 17 deletions
diff --git a/usr/src/uts/common/os/modhash.c b/usr/src/uts/common/os/modhash.c
index 19700ce685..3c63231253 100644
--- a/usr/src/uts/common/os/modhash.c
+++ b/usr/src/uts/common/os/modhash.c
@@ -2,9 +2,8 @@
* 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.
+ * 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
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -165,15 +164,6 @@
*/
#define MH_KEYCMP(hash, key1, key2) ((hash->mh_keycmp)(key1, key2))
-static void i_mod_hash_clear_nosync(mod_hash_t *);
-static int i_mod_hash_find_nosync(mod_hash_t *, mod_hash_key_t,
- mod_hash_val_t *);
-static int i_mod_hash_insert_nosync(mod_hash_t *, mod_hash_key_t,
- mod_hash_val_t, mod_hash_hndl_t);
-static int i_mod_hash_remove_nosync(mod_hash_t *, mod_hash_key_t,
- mod_hash_val_t *);
-static uint_t i_mod_hash(mod_hash_t *, mod_hash_key_t);
-
/*
* Cache for struct mod_hash_entry
*/
@@ -522,7 +512,7 @@ mod_hash_destroy_hash(mod_hash_t *hash)
* i_mod_hash()
* Call the hashing algorithm for this hash table, with the given key.
*/
-static uint_t
+uint_t
i_mod_hash(mod_hash_t *hash, mod_hash_key_t key)
{
uint_t h;
@@ -778,7 +768,7 @@ mod_hash_destroy(mod_hash_t *hash, mod_hash_key_t key)
* mod_hash_find()
* Find a value in the hash table corresponding to the given key.
*/
-static int
+int
i_mod_hash_find_nosync(mod_hash_t *hash, mod_hash_key_t key,
mod_hash_val_t *val)
{
@@ -826,7 +816,7 @@ mod_hash_find_cb(mod_hash_t *hash, mod_hash_key_t key, mod_hash_val_t *val,
return (res);
}
-static void
+void
i_mod_hash_walk_nosync(mod_hash_t *hash,
uint_t (*callback)(mod_hash_key_t, mod_hash_val_t *, void *), void *arg)
{
@@ -870,7 +860,7 @@ mod_hash_walk(mod_hash_t *hash,
* Clears the given hash table by calling the destructor of every hash
* element and freeing up all mod_hash_entry's.
*/
-static void
+void
i_mod_hash_clear_nosync(mod_hash_t *hash)
{
int i;