#include "XrdFfs/XrdFfsDent.hh"
Go to the source code of this file.
#define XrdFfsDent_NDENTCACHES 20 |
Definition at line 183 of file XrdFfsDent.cc.
Referenced by XrdFfsDent_cache_destroy(), XrdFfsDent_cache_fill(), XrdFfsDent_cache_init(), and XrdFfsDent_cache_search().
void XrdFfsDent_cache_destroy | ( | ) |
Definition at line 241 of file XrdFfsDent.cc.
References i, XrdFfsDent_dentcache_free(), XrdFfsDent_NDENTCACHES, and XrdFfsDentCaches.
int XrdFfsDent_cache_fill | ( | char * | dname, | |
char *** | dnarray, | |||
int | nents | |||
) |
Definition at line 199 of file XrdFfsDent.cc.
References i, NULL, pthread_mutex_lock(), pthread_mutex_unlock(), XrdFfsDent_dentcache_expired(), XrdFfsDent_dentcache_fill(), XrdFfsDent_dentcache_free(), XrdFfsDent_dentcache_invalid(), XrdFfsDent_dentcache_search(), XrdFfsDent_NDENTCACHES, and XrdFfsDentCaches.
void XrdFfsDent_cache_init | ( | ) |
Definition at line 187 of file XrdFfsDent.cc.
References XrdFfsDentcache::dirname, XrdFfsDentcache::dnarray, i, XrdFfsDentcache::nents, NULL, XrdFfsDentcache::t0, XrdFfsDent_NDENTCACHES, and XrdFfsDentCaches.
Referenced by XrdPssSys::Configure(), and XrdFfsMisc_xrd_init().
int XrdFfsDent_cache_search | ( | char * | dname, | |
char * | dentname | |||
) |
Definition at line 227 of file XrdFfsDent.cc.
References i, pthread_mutex_lock(), pthread_mutex_unlock(), XrdFfsDent_dentcache_search(), XrdFfsDent_NDENTCACHES, and XrdFfsDentCaches.
Referenced by XrdFfsPosix_statall().
int XrdFfsDent_cstr_cmp | ( | const void * | a, | |
const void * | b | |||
) |
Definition at line 19 of file XrdFfsDent.cc.
Referenced by XrdFfsDent_dentcache_search(), and XrdFfsDent_names_extract().
int XrdFfsDent_dentcache_expired | ( | struct XrdFfsDentcache * | cache | ) |
Definition at line 149 of file XrdFfsDent.cc.
References XrdFfsDentcache::life, NULL, and XrdFfsDentcache::t0.
Referenced by XrdFfsDent_cache_fill().
void XrdFfsDent_dentcache_fill | ( | struct XrdFfsDentcache * | cache, | |
char * | dname, | |||
char *** | dnarray, | |||
int | nents | |||
) |
Definition at line 120 of file XrdFfsDent.cc.
References XrdFfsDentcache::dirname, XrdFfsDentcache::dnarray, i, XrdFfsDentcache::life, malloc(), XrdFfsDentcache::nents, NULL, and XrdFfsDentcache::t0.
Referenced by XrdFfsDent_cache_fill().
void XrdFfsDent_dentcache_free | ( | struct XrdFfsDentcache * | cache | ) |
Definition at line 134 of file XrdFfsDent.cc.
References XrdFfsDentcache::dirname, XrdFfsDentcache::dnarray, free(), i, int, XrdFfsDentcache::nents, and NULL.
Referenced by XrdFfsDent_cache_destroy(), and XrdFfsDent_cache_fill().
int XrdFfsDent_dentcache_invalid | ( | struct XrdFfsDentcache * | cache | ) |
Definition at line 156 of file XrdFfsDent.cc.
References NULL, and XrdFfsDentcache::t0.
Referenced by XrdFfsDent_cache_fill(), and XrdFfsDent_dentcache_search().
int XrdFfsDent_dentcache_search | ( | struct XrdFfsDentcache * | cache, | |
char * | dname, | |||
char * | dentname | |||
) |
Definition at line 163 of file XrdFfsDent.cc.
References XrdFfsDentcache::dirname, XrdFfsDentcache::dnarray, XrdFfsDentcache::nents, NULL, strcat(), strcpy(), XrdFfsDent_cstr_cmp(), and XrdFfsDent_dentcache_invalid().
Referenced by XrdFfsDent_cache_fill(), and XrdFfsDent_cache_search().
void XrdFfsDent_names_add | ( | struct XrdFfsDentnames ** | p, | |
char * | name | |||
) |
Definition at line 36 of file XrdFfsDent.cc.
References malloc(), n, and p.
Referenced by XrdFfsPosix_x_readdirall().
void XrdFfsDent_names_del | ( | struct XrdFfsDentnames ** | p | ) |
Definition at line 29 of file XrdFfsDent.cc.
References free(), NULL, and p.
Referenced by XrdFfsDent_names_extract().
int XrdFfsDent_names_extract | ( | struct XrdFfsDentnames ** | p, | |
char *** | dnarray | |||
) |
Definition at line 80 of file XrdFfsDent.cc.
References i, malloc(), NULL, p, x, XrdFfsDent_cstr_cmp(), XrdFfsDent_names_del(), and y.
void XrdFfsDent_names_join | ( | struct XrdFfsDentnames ** | p, | |
struct XrdFfsDentnames ** | n | |||
) |
struct XrdFfsDentcache XrdFfsDentCaches[XrdFfsDent_NDENTCACHES] |
Definition at line 184 of file XrdFfsDent.cc.
Referenced by XrdFfsDent_cache_destroy(), XrdFfsDent_cache_fill(), XrdFfsDent_cache_init(), and XrdFfsDent_cache_search().
pthread_mutex_t XrdFfsDentCaches_mutex = PTHREAD_MUTEX_INITIALIZER |
Definition at line 185 of file XrdFfsDent.cc.