nfs-ganesha 1.4
Functions

cache_inode_fsal_hash.c File Reference

Glue functions between the FSAL and the Cache inode layers. More...

#include "log.h"
#include "err_fsal.h"
#include "err_cache_inode.h"
#include "nfs_core.h"
#include <unistd.h>
#include <stdlib.h>
#include <strings.h>
#include <sys/types.h>

Go to the source code of this file.

Functions

uint32_t cache_inode_fsal_hash_func (hash_parameter_t *p_hparam, hash_buffer_t *buffclef)
uint64_t cache_inode_fsal_rbt_func (hash_parameter_t *p_hparam, hash_buffer_t *buffclef)
unsigned long __cache_inode_fsal_rbt_func (hash_parameter_t *p_hparam, hash_buffer_t *buffclef)
int cache_inode_fsal_rbt_both (hash_parameter_t *p_hparam, hash_buffer_t *buffclef, uint32_t *phashval, uint64_t *prbtval)
int display_key (hash_buffer_t *pbuff, char *str)
int display_not_implemented (hash_buffer_t *pbuff, char *str)
int display_value (hash_buffer_t *pbuff, char *str)

Detailed Description

Glue functions between the FSAL and the Cache inode layers.

Author:
Author:
leibovic
Date:
Date:
2006/01/20 07:39:23
Version:
Revision:
1.9

cache_inode_fsal_glue.c : Glue functions between the FSAL and the Cache inode layers.

Definition in file cache_inode_fsal_hash.c.


Function Documentation

unsigned long __cache_inode_fsal_rbt_func ( hash_parameter_t p_hparam,
hash_buffer_t buffclef 
)

Definition at line 122 of file cache_inode_fsal_hash.c.

uint32_t cache_inode_fsal_hash_func ( hash_parameter_t p_hparam,
hash_buffer_t buffclef 
)

cache_inode_fsal_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 65 of file cache_inode_fsal_hash.c.

int cache_inode_fsal_rbt_both ( hash_parameter_t p_hparam,
hash_buffer_t buffclef,
uint32_t phashval,
uint64_t prbtval 
)

Definition at line 237 of file cache_inode_fsal_hash.c.

uint64_t cache_inode_fsal_rbt_func ( hash_parameter_t p_hparam,
hash_buffer_t buffclef 
)

cache_inode_fsal_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 99 of file cache_inode_fsal_hash.c.

int display_key ( hash_buffer_t pbuff,
char *  str 
)

Definition at line 249 of file cache_inode_fsal_hash.c.

int display_not_implemented ( hash_buffer_t pbuff,
char *  str 
)

Definition at line 259 of file cache_inode_fsal_hash.c.

int display_value ( hash_buffer_t pbuff,
char *  str 
)

Definition at line 266 of file cache_inode_fsal_hash.c.