nfs-ganesha 1.4
|
#include <string.h>
#include <ctype.h>
#include <pthread.h>
#include "log.h"
#include "HashData.h"
#include "HashTable.h"
#include "nfs_core.h"
#include "nlm4.h"
#include "sal_functions.h"
#include "nsm.h"
#include "ganesha_rpc.h"
Go to the source code of this file.
Functions | |
int | display_nsm_client (state_nsm_client_t *pkey, char *str) |
int | display_nsm_client_key (hash_buffer_t *pbuff, char *str) |
int | display_nsm_client_val (hash_buffer_t *pbuff, char *str) |
int | compare_nsm_client (state_nsm_client_t *pclient1, state_nsm_client_t *pclient2) |
int | compare_nsm_client_key (hash_buffer_t *buff1, hash_buffer_t *buff2) |
uint32_t | nsm_client_value_hash_func (hash_parameter_t *p_hparam, hash_buffer_t *buffclef) |
uint64_t | nsm_client_rbt_hash_func (hash_parameter_t *p_hparam, hash_buffer_t *buffclef) |
int | display_nlm_client (state_nlm_client_t *pkey, char *str) |
int | display_nlm_client_key (hash_buffer_t *pbuff, char *str) |
int | display_nlm_client_val (hash_buffer_t *pbuff, char *str) |
int | compare_nlm_client (state_nlm_client_t *pclient1, state_nlm_client_t *pclient2) |
int | compare_nlm_client_key (hash_buffer_t *buff1, hash_buffer_t *buff2) |
uint32_t | nlm_client_value_hash_func (hash_parameter_t *p_hparam, hash_buffer_t *buffclef) |
uint64_t | nlm_client_rbt_hash_func (hash_parameter_t *p_hparam, hash_buffer_t *buffclef) |
int | display_nlm_owner (state_owner_t *pkey, char *str) |
int | display_nlm_owner_key (hash_buffer_t *pbuff, char *str) |
int | display_nlm_owner_val (hash_buffer_t *pbuff, char *str) |
int | compare_nlm_owner (state_owner_t *powner1, state_owner_t *powner2) |
int | compare_nlm_owner_key (hash_buffer_t *buff1, hash_buffer_t *buff2) |
uint32_t | nlm_owner_value_hash_func (hash_parameter_t *p_hparam, hash_buffer_t *buffclef) |
uint64_t | nlm_owner_rbt_hash_func (hash_parameter_t *p_hparam, hash_buffer_t *buffclef) |
int | Init_nlm_hash (void) |
int | nsm_client_Set (state_nsm_client_t *pkey, state_nsm_client_t *pclient) |
void | inc_nsm_client_ref_locked (state_nsm_client_t *pclient) |
void | inc_nsm_client_ref (state_nsm_client_t *pclient) |
void | free_nsm_client (state_nsm_client_t *pclient) |
void | dec_nsm_client_ref_locked (state_nsm_client_t *pclient) |
void | dec_nsm_client_ref (state_nsm_client_t *pclient) |
int | nsm_client_Get_Pointer (state_nsm_client_t *pkey, state_nsm_client_t **pclient) |
void | nsm_client_PrintAll (void) |
state_nsm_client_t * | get_nsm_client (care_t care, SVCXPRT *xprt, const char *caller_name) |
int | nlm_client_Set (state_nlm_client_t *pkey, state_nlm_client_t *pclient) |
void | inc_nlm_client_ref_locked (state_nlm_client_t *pclient) |
void | inc_nlm_client_ref (state_nlm_client_t *pclient) |
void | dec_nlm_client_ref_locked (state_nlm_client_t *pclient) |
void | dec_nlm_client_ref (state_nlm_client_t *pclient) |
int | nlm_client_Get_Pointer (state_nlm_client_t *pkey, state_nlm_client_t **pclient) |
void | nlm_client_PrintAll (void) |
state_nlm_client_t * | get_nlm_client (care_t care, SVCXPRT *xprt, state_nsm_client_t *pnsm_client, const char *caller_name) |
int | nlm_owner_Set (state_owner_t *pkey, state_owner_t *powner) |
void | remove_nlm_owner (state_owner_t *powner, const char *str) |
void | nlm_owner_PrintAll (void) |
state_owner_t * | get_nlm_owner (care_t care, state_nlm_client_t *pclient, netobj *oh, uint32_t svid) |
Variables | |
hash_table_t * | ht_nsm_client |
hash_table_t * | ht_nlm_client |
hash_table_t * | ht_nlm_owner |
int compare_nlm_client | ( | state_nlm_client_t * | pclient1, |
state_nlm_client_t * | pclient2 | ||
) |
Definition at line 221 of file nlm_owner.c.
int compare_nlm_client_key | ( | hash_buffer_t * | buff1, |
hash_buffer_t * | buff2 | ||
) |
Definition at line 255 of file nlm_owner.c.
int compare_nlm_owner | ( | state_owner_t * | powner1, |
state_owner_t * | powner2 | ||
) |
Definition at line 336 of file nlm_owner.c.
int compare_nlm_owner_key | ( | hash_buffer_t * | buff1, |
hash_buffer_t * | buff2 | ||
) |
Definition at line 373 of file nlm_owner.c.
int compare_nsm_client | ( | state_nsm_client_t * | pclient1, |
state_nsm_client_t * | pclient2 | ||
) |
Definition at line 92 of file nlm_owner.c.
int compare_nsm_client_key | ( | hash_buffer_t * | buff1, |
hash_buffer_t * | buff2 | ||
) |
Definition at line 127 of file nlm_owner.c.
void dec_nlm_client_ref | ( | state_nlm_client_t * | pclient | ) |
Definition at line 1095 of file nlm_owner.c.
void dec_nlm_client_ref_locked | ( | state_nlm_client_t * | pclient | ) |
Definition at line 1032 of file nlm_owner.c.
void dec_nsm_client_ref | ( | state_nsm_client_t * | pclient | ) |
Definition at line 642 of file nlm_owner.c.
void dec_nsm_client_ref_locked | ( | state_nsm_client_t * | pclient | ) |
Definition at line 586 of file nlm_owner.c.
int display_nlm_client | ( | state_nlm_client_t * | pkey, |
char * | str | ||
) |
Definition at line 193 of file nlm_owner.c.
int display_nlm_client_key | ( | hash_buffer_t * | pbuff, |
char * | str | ||
) |
Definition at line 211 of file nlm_owner.c.
int display_nlm_client_val | ( | hash_buffer_t * | pbuff, |
char * | str | ||
) |
Definition at line 216 of file nlm_owner.c.
int display_nlm_owner | ( | state_owner_t * | pkey, |
char * | str | ||
) |
Definition at line 305 of file nlm_owner.c.
int display_nlm_owner_key | ( | hash_buffer_t * | pbuff, |
char * | str | ||
) |
Definition at line 326 of file nlm_owner.c.
int display_nlm_owner_val | ( | hash_buffer_t * | pbuff, |
char * | str | ||
) |
Definition at line 331 of file nlm_owner.c.
int display_nsm_client | ( | state_nsm_client_t * | pkey, |
char * | str | ||
) |
Definition at line 58 of file nlm_owner.c.
int display_nsm_client_key | ( | hash_buffer_t * | pbuff, |
char * | str | ||
) |
Definition at line 82 of file nlm_owner.c.
int display_nsm_client_val | ( | hash_buffer_t * | pbuff, |
char * | str | ||
) |
Definition at line 87 of file nlm_owner.c.
void free_nsm_client | ( | state_nsm_client_t * | pclient | ) |
Definition at line 577 of file nlm_owner.c.
state_nlm_client_t* get_nlm_client | ( | care_t | care, |
SVCXPRT * | xprt, | ||
state_nsm_client_t * | pnsm_client, | ||
const char * | caller_name | ||
) |
Definition at line 1164 of file nlm_owner.c.
state_owner_t* get_nlm_owner | ( | care_t | care, |
state_nlm_client_t * | pclient, | ||
netobj * | oh, | ||
uint32_t | svid | ||
) |
Definition at line 1430 of file nlm_owner.c.
state_nsm_client_t* get_nsm_client | ( | care_t | care, |
SVCXPRT * | xprt, | ||
const char * | caller_name | ||
) |
Definition at line 710 of file nlm_owner.c.
void inc_nlm_client_ref | ( | state_nlm_client_t * | pclient | ) |
Definition at line 1025 of file nlm_owner.c.
void inc_nlm_client_ref_locked | ( | state_nlm_client_t * | pclient | ) |
Definition at line 1008 of file nlm_owner.c.
void inc_nsm_client_ref | ( | state_nsm_client_t * | pclient | ) |
Definition at line 570 of file nlm_owner.c.
void inc_nsm_client_ref_locked | ( | state_nsm_client_t * | pclient | ) |
Definition at line 553 of file nlm_owner.c.
int Init_nlm_hash | ( | void | ) |
Init_nlm_hash: Init the hashtable for NLM Owner cache.
Perform all the required initialization for hashtable State Id cache
param | [IN] parameter used to init the duplicate request cache |
Definition at line 437 of file nlm_owner.c.
int nlm_client_Get_Pointer | ( | state_nlm_client_t * | pkey, |
state_nlm_client_t ** | pclient | ||
) |
nlm_client_Get_Pointer
This routine gets a pointer to an NLM client from the nlm_client's hashtable.
pstate | [IN] pointer to the stateid to be checked. |
ppstate_data | [OUT] pointer's state found |
Definition at line 1114 of file nlm_owner.c.
void nlm_client_PrintAll | ( | void | ) |
nlm_client_PrintAll
This routine displays the content of the hashtable used to store the NLM clients.
Definition at line 1158 of file nlm_owner.c.
uint64_t nlm_client_rbt_hash_func | ( | hash_parameter_t * | p_hparam, |
hash_buffer_t * | buffclef | ||
) |
Definition at line 284 of file nlm_owner.c.
int nlm_client_Set | ( | state_nlm_client_t * | pkey, |
state_nlm_client_t * | pclient | ||
) |
nlm_client_Set
This routine sets a NLM client into the related hashtable
Definition at line 930 of file nlm_owner.c.
uint32_t nlm_client_value_hash_func | ( | hash_parameter_t * | p_hparam, |
hash_buffer_t * | buffclef | ||
) |
Definition at line 262 of file nlm_owner.c.
void nlm_owner_PrintAll | ( | void | ) |
nlm_owner_PrintAll
This routine displays the content of the hashtable used to store the NLM owners.
Definition at line 1425 of file nlm_owner.c.
uint64_t nlm_owner_rbt_hash_func | ( | hash_parameter_t * | p_hparam, |
hash_buffer_t * | buffclef | ||
) |
Definition at line 404 of file nlm_owner.c.
int nlm_owner_Set | ( | state_owner_t * | pkey, |
state_owner_t * | powner | ||
) |
nlm_owner_Set
This routine sets a NLM owner into the related hashtable
Definition at line 1295 of file nlm_owner.c.
uint32_t nlm_owner_value_hash_func | ( | hash_parameter_t * | p_hparam, |
hash_buffer_t * | buffclef | ||
) |
Definition at line 380 of file nlm_owner.c.
int nsm_client_Get_Pointer | ( | state_nsm_client_t * | pkey, |
state_nsm_client_t ** | pclient | ||
) |
nsm_client_Get_Pointer
This routine gets a pointer to an NSM client from the nsm_client's hashtable.
pstate | [IN] pointer to the stateid to be checked. |
ppstate_data | [OUT] pointer's state found |
Definition at line 661 of file nlm_owner.c.
void nsm_client_PrintAll | ( | void | ) |
nsm_client_PrintAll
This routine displays the content of the hashtable used to store the NSM clients.
Definition at line 705 of file nlm_owner.c.
uint64_t nsm_client_rbt_hash_func | ( | hash_parameter_t * | p_hparam, |
hash_buffer_t * | buffclef | ||
) |
Definition at line 164 of file nlm_owner.c.
int nsm_client_Set | ( | state_nsm_client_t * | pkey, |
state_nsm_client_t * | pclient | ||
) |
nsm_client_Set
This routine sets a NSM client into the related hashtable
Definition at line 475 of file nlm_owner.c.
uint32_t nsm_client_value_hash_func | ( | hash_parameter_t * | p_hparam, |
hash_buffer_t * | buffclef | ||
) |
Definition at line 134 of file nlm_owner.c.
void remove_nlm_owner | ( | state_owner_t * | powner, |
const char * | str | ||
) |
Definition at line 1327 of file nlm_owner.c.
Definition at line 55 of file nlm_owner.c.
Definition at line 56 of file nlm_owner.c.
vim:expandtab:shiftwidth=8:tabstop=8:
Copyright CEA/DAM/DIF (2008) contributeur : Philippe DENIEL philippe.deniel@cea.fr Thomas LEIBOVICI thomas.leibovici@cea.fr
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
---------------------------------------
nlm_owner.c : The management of the NLM owner cache.
$Header$
$Log$
Definition at line 54 of file nlm_owner.c.