nfs-ganesha 1.4
Functions

cache_content_add_entry.c File Reference

Management of the file content cache: adding a new entry. 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 <fcntl.h>
#include <string.h>

Go to the source code of this file.

Functions

cache_content_entry_tcache_content_new_entry (cache_entry_t *pentry_inode, cache_content_spec_data_t *pspecdata, cache_content_client_t *pclient, cache_content_add_behaviour_t how, fsal_op_context_t *pcontext, cache_content_status_t *pstatus)

Detailed Description

Management of the file content cache: adding a new entry.

Author:
Author:
deniel
Date:
Date:
2005/11/28 17:02:32
Version:
Revision:
1.12

cache_content_add_entry.c : Management of the file content cache: adding a new entry.

Definition in file cache_content_add_entry.c.


Function Documentation

cache_content_entry_t* cache_content_new_entry ( cache_entry_t pentry_inode,
cache_content_spec_data_t pspecdata,
cache_content_client_t pclient,
cache_content_add_behaviour_t  how,
fsal_op_context_t pcontext,
cache_content_status_t pstatus 
)

cache_content_new_entry: adds an entry to the file content cache.

Adds an entry to the file content cache. This routine should be called only from the cache_inode layer.

No lock management is done in this layer: the related pentry in the cache inode layer is locked and will prevent from concurent accesses.

Parameters:
pentry_inode[IN] entry in cache_inode layer for this file.
pspecdata[IN] pointer to the entry's specific data
pclient[IN] ressource allocated by the client for the nfs management. [OUT] returned status.
Returns:
CACHE_CONTENT_SUCCESS is successful .

Definition at line 80 of file cache_content_add_entry.c.