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 "sal_functions.h"
Go to the source code of this file.
Functions | |
int | display_9p_owner (state_owner_t *pkey, char *str) |
int | display_9p_owner_key (hash_buffer_t *pbuff, char *str) |
int | display_9p_owner_val (hash_buffer_t *pbuff, char *str) |
int | compare_9p_owner (state_owner_t *powner1, state_owner_t *powner2) |
int | compare_9p_owner_key (hash_buffer_t *buff1, hash_buffer_t *buff2) |
uint32_t | _9p_owner_value_hash_func (hash_parameter_t *p_hparam, hash_buffer_t *buffclef) |
uint64_t | _9p_owner_rbt_hash_func (hash_parameter_t *p_hparam, hash_buffer_t *buffclef) |
int | Init_9p_hash (void) |
int | _9p_owner_Set (state_owner_t *pkey, state_owner_t *powner) |
void | remove_9p_owner (state_owner_t *powner, const char *str) |
void | _9p_owner_PrintAll (void) |
state_owner_t * | get_9p_owner (struct sockaddr_storage *pclient_addr, uint32_t proc_id) |
Variables | |
hash_table_t * | ht_9p_owner |
void _9p_owner_PrintAll | ( | void | ) |
_9p_owner_PrintAll
This routine displays the content of the hashtable used to store the 9P owners.
Definition at line 341 of file 9p_owner.c.
uint64_t _9p_owner_rbt_hash_func | ( | hash_parameter_t * | p_hparam, |
hash_buffer_t * | buffclef | ||
) |
Definition at line 155 of file 9p_owner.c.
int _9p_owner_Set | ( | state_owner_t * | pkey, |
state_owner_t * | powner | ||
) |
_9p_owner_Set
This routine sets a 9P owner into the related hashtable
Definition at line 212 of file 9p_owner.c.
uint32_t _9p_owner_value_hash_func | ( | hash_parameter_t * | p_hparam, |
hash_buffer_t * | buffclef | ||
) |
Definition at line 128 of file 9p_owner.c.
int compare_9p_owner | ( | state_owner_t * | powner1, |
state_owner_t * | powner2 | ||
) |
Definition at line 82 of file 9p_owner.c.
int compare_9p_owner_key | ( | hash_buffer_t * | buff1, |
hash_buffer_t * | buff2 | ||
) |
Definition at line 121 of file 9p_owner.c.
int display_9p_owner | ( | state_owner_t * | pkey, |
char * | str | ||
) |
Definition at line 53 of file 9p_owner.c.
int display_9p_owner_key | ( | hash_buffer_t * | pbuff, |
char * | str | ||
) |
Definition at line 72 of file 9p_owner.c.
int display_9p_owner_val | ( | hash_buffer_t * | pbuff, |
char * | str | ||
) |
Definition at line 77 of file 9p_owner.c.
state_owner_t* get_9p_owner | ( | struct sockaddr_storage * | pclient_addr, |
uint32_t | proc_id | ||
) |
Definition at line 346 of file 9p_owner.c.
int Init_9p_hash | ( | void | ) |
Init_9p_hash: Init the hashtable for 9P 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 191 of file 9p_owner.c.
void remove_9p_owner | ( | state_owner_t * | powner, |
const char * | str | ||
) |
Definition at line 244 of file 9p_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
---------------------------------------
9p_owner.c : The management of the 9P owner cache.
$Header$
$Log$
Definition at line 51 of file 9p_owner.c.