nfs-ganesha 1.4
Functions | Variables

mfsl_async_hash.c File Reference

#include "log.h"
#include "fsal_types.h"
#include "fsal.h"
#include "mfsl_types.h"
#include "mfsl.h"
#include "common_utils.h"
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>

Go to the source code of this file.

Functions

unsigned long mfsl_async_hash_func (hash_parameter_t *p_hparam, hash_buffer_t *buffclef)
unsigned long mfsl_async_rbt_func (hash_parameter_t *p_hparam, hash_buffer_t *buffclef)
int mfsl_async_display_key (hash_buffer_t *pbuff, char *str)
int mfsl_async_display_not_implemented (hash_buffer_t *pbuff, char *str)
int mfsl_async_compare_key (hash_buffer_t *buff1, hash_buffer_t *buff2)
int mfsl_async_hash_init (void)
int mfsl_async_set_specdata (mfsl_object_t *key, mfsl_object_specific_data_t *value)
int mfsl_async_get_specdata (mfsl_object_t *key, mfsl_object_specific_data_t **ppvalue)
int mfsl_async_remove_specdata (mfsl_object_t *key)
int mfsl_async_is_object_asynchronous (mfsl_object_t *object)

Variables

hash_table_tmfsl_ht = NULL
hash_parameter_t mfsl_hparam

Function Documentation

int mfsl_async_compare_key ( hash_buffer_t buff1,
hash_buffer_t buff2 
)

mfsl_async_compare_keyl: Compares two keys

Compare two keys used to cache mfsl object asynchronous status

Parameters:
buff1[IN] first key
buff2[IN] second key
Returns:
0 if keys are the same, 1 otherwise
See also:
FSAL_handlecmp

Definition at line 152 of file mfsl_async_hash.c.

int mfsl_async_display_key ( hash_buffer_t pbuff,
char *  str 
)

Definition at line 122 of file mfsl_async_hash.c.

int mfsl_async_display_not_implemented ( hash_buffer_t pbuff,
char *  str 
)

Definition at line 134 of file mfsl_async_hash.c.

int mfsl_async_get_specdata ( mfsl_object_t key,
mfsl_object_specific_data_t **  ppvalue 
)

Definition at line 228 of file mfsl_async_hash.c.

unsigned long mfsl_async_hash_func ( hash_parameter_t p_hparam,
hash_buffer_t buffclef 
)

mfsl_async_hash_func: Compute the hash value for the cache_inode hash table.

Computes the hash value for the cache_inode hash table. This function is specific to use with HPSS/FSAL.

Parameters:
hparam[IN] hash table parameter.
buffclef[IN] key to be used for computing the hash value.
Returns:
the computed hash value.

Definition at line 71 of file mfsl_async_hash.c.

int mfsl_async_hash_init ( void  )

Definition at line 180 of file mfsl_async_hash.c.

int mfsl_async_is_object_asynchronous ( mfsl_object_t object)

Definition at line 281 of file mfsl_async_hash.c.

unsigned long mfsl_async_rbt_func ( hash_parameter_t p_hparam,
hash_buffer_t buffclef 
)

mfsl_async_rbt_func: Compute the rbt value for the cache_inode hash table.

Computes the rbt value for the cache_inode hash table. This function is specific to use with HPSS/FSAL.

Parameters:
hparam[IN] hash table parameter.
buffclef[IN] key to be used for computing the hash value.
Returns:
the computed rbt value.

Definition at line 102 of file mfsl_async_hash.c.

int mfsl_async_remove_specdata ( mfsl_object_t key)

Definition at line 258 of file mfsl_async_hash.c.

int mfsl_async_set_specdata ( mfsl_object_t key,
mfsl_object_specific_data_t value 
)

Definition at line 202 of file mfsl_async_hash.c.


Variable Documentation

Definition at line 57 of file mfsl_async_hash.c.

Definition at line 56 of file mfsl_async_hash.c.