A brief file description. More...
#include "P_Cache.h"
Go to the source code of this file.
Data Structures | |
struct | CacheHostRecord |
struct | CacheHostResult |
class | CacheHostMatcher |
class | CacheHostTable |
struct | CacheHostTableConfig |
struct | ConfigVol |
struct | ConfigVolumes |
Defines | |
#define | CACHE_MEM_FREE_TIMEOUT HRTIME_SECONDS(1) |
Typedefs | |
typedef int(CacheHostTableConfig::* | CacheHostTabHandler )(int, void *) |
Functions | |
void | build_vol_hash_table (CacheHostRecord *cp) |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file P_CacheHosting.h.
#define CACHE_MEM_FREE_TIMEOUT HRTIME_SECONDS(1) |
Definition at line 28 of file P_CacheHosting.h.
Referenced by build_vol_hash_table(), and CacheHostTableConfig::mainEvent().
typedef int(CacheHostTableConfig::* CacheHostTabHandler)(int, void *) |
Definition at line 135 of file P_CacheHosting.h.
void build_vol_hash_table | ( | CacheHostRecord * | cp | ) |
Definition at line 2036 of file Cache.cc.
References ats_free(), ats_malloc(), CACHE_MEM_FREE_TIMEOUT, cmprtable(), Debug, Vol::disk, DISK_BAD, ats::CryptoHash::fold(), Vol::hash_id, rtable_pair::idx, ink_assert, Vol::len, map, new_Freer(), next_rand(), CacheHostRecord::num_vols, rtable_pair::rval, VOL_HASH_EMPTY, CacheHostRecord::vol_hash_table, VOL_HASH_TABLE_SIZE, and CacheHostRecord::vols.
Referenced by cache_disk_replacement_stability(), CacheHostRecord::Init(), and rebuild_host_table().