nfs-ganesha 1.4
Functions

cache_content_init.c File Reference

Management of the file content cache: initialisation. More...

#include "LRU_List.h"
#include "log.h"
#include "HashData.h"
#include "HashTable.h"
#include "fsal.h"
#include "cache_inode.h"
#include "cache_content.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/param.h>
#include <time.h>
#include <pthread.h>
#include <errno.h>
#include <string.h>

Go to the source code of this file.

Functions

int cache_content_init (cache_content_client_parameter_t param, cache_content_status_t *pstatus)
int cache_content_init_dir (cache_content_client_parameter_t param, unsigned short export_id)
int cache_content_client_init (cache_content_client_t *pclient, cache_content_client_parameter_t param, char *name)

Detailed Description

Management of the file content cache: initialisation.

Author:
Author:
deniel
Date:
Date:
2005/11/28 17:02:33
Version:
Revision:
1.8

cache_content.c : Management of the file content cache: initialisation.

Author:
Author:
leibovic
Date:
Date:
2006/01/24 13:46:35
Version:
Revision:
1.8

cache_content.c : Management of the file content cache: initialisation.

Definition in file cache_content_init.c.


Function Documentation

int cache_content_client_init ( cache_content_client_t pclient,
cache_content_client_parameter_t  param,
char *  name 
)

cache_content_client_init: Init the ressource necessary for the cache content client.

Init the ressource necessary for the cache content client.

Parameters:
param[IN] the parameter for this client
pstatus[OUT] pointer to buffer used to store the status for the operation.
Returns:
0 if operation failed, -1 if failed.

Definition at line 127 of file cache_content_init.c.

int cache_content_init ( cache_content_client_parameter_t  param,
cache_content_status_t pstatus 
)

cache_inode_init: Init the ressource necessary for the cache inode management.

Init the ressource necessary for the cache inode management.

Parameters:
param[IN] the parameter for this cache.
pstatus[OUT] pointer to buffer used to store the status for the operation.
Returns:
0 if operation failed, -1 if failed.

Definition at line 72 of file cache_content_init.c.

int cache_content_init_dir ( cache_content_client_parameter_t  param,
unsigned short  export_id 
)

cache_content_init_dir: Init the directory for caching entries from a given export id.

Parameters:
param[IN] the parameter for this cache.
export_id[IN] export id for the entries to be cached.
Returns:
0 if ok, -1 otherwise. Errno will be set with the error's value.

Definition at line 100 of file cache_content_init.c.