Home
last modified time | relevance | path

Searched refs:cachep (Results 1 – 20 of 20) sorted by relevance

/titanic_44/usr/src/uts/common/fs/cachefs/
H A Dcachefs_resource.c67 void cachefs_garbage_collect_queue(cachefscache_t *cachep);
68 static time_t cachefs_gc_front_atime(cachefscache_t *cachep);
69 static void cachefs_garbage_collect(cachefscache_t *cachep);
70 static void cachefs_packed_pending(cachefscache_t *cachep);
73 #define RL_HEAD(cachep, type) \ argument
74 (&(cachep->c_rlinfo.rl_items[CACHEFS_RL_INDEX(type)]))
81 cachefs_rlent_moveto(cachefscache_t *cachep, in cachefs_rlent_moveto() argument
84 mutex_enter(&cachep->c_contentslock); in cachefs_rlent_moveto()
85 cachefs_cache_dirty(cachep, 0); in cachefs_rlent_moveto()
86 cachefs_rlent_moveto_nolock(cachep, type, entno, blks); in cachefs_rlent_moveto()
[all …]
H A Dcachefs_subr.c112 cachefscache_t *cachep; in cachefs_cache_create() local
116 cachep = kmem_cache_alloc(cachefs_cache_kmcache, KM_SLEEP); in cachefs_cache_create()
118 bzero(cachep, sizeof (*cachep)); in cachefs_cache_create()
120 cv_init(&cachep->c_cwcv, NULL, CV_DEFAULT, NULL); in cachefs_cache_create()
121 cv_init(&cachep->c_cwhaltcv, NULL, CV_DEFAULT, NULL); in cachefs_cache_create()
122 mutex_init(&cachep->c_contentslock, NULL, MUTEX_DEFAULT, NULL); in cachefs_cache_create()
123 mutex_init(&cachep->c_fslistlock, NULL, MUTEX_DEFAULT, NULL); in cachefs_cache_create()
124 mutex_init(&cachep->c_log_mutex, NULL, MUTEX_DEFAULT, NULL); in cachefs_cache_create()
127 cachefs_workq_init(&cachep->c_workq); in cachefs_cache_create()
128 cachep->c_workq.wq_keepone = 1; in cachefs_cache_create()
[all …]
H A Dcachefs_log.c70 #define OUT_IF_TIME_OVERFLOW(cachep, time) \ argument
72 cachefs_log_error(cachep, EOVERFLOW, 1); \
76 #define RET_IF_TIME_OVERFLOW(cachep, time) \ argument
78 cachefs_log_error(cachep, EOVERFLOW, 1); \
84 #define OUT_IF_TIME_OVERFLOW(cachep, time) argument
86 #define RET_IF_TIME_OVERFLOW(cachep, time) argument
153 cachefscache_t *cachep = (cachefscache_t *)(uintptr_t)lc->lc_cachep; in cachefs_log_kstat_snapshot() local
154 cachefs_log_cookie_t *cl = cachep->c_log; in cachefs_log_kstat_snapshot()
157 ASSERT(MUTEX_HELD(&cachep->c_log_mutex)); in cachefs_log_kstat_snapshot()
181 cl = cachep->c_log = cachefs_log_create_cookie(lc); in cachefs_log_kstat_snapshot()
[all …]
H A Dcachefs_vfsops.c146 cachefscache_t *cachep = NULL; in cachefs_mount() local
350 for (cachep = cachefs_cachelist; cachep != NULL; in cachefs_mount()
351 cachep = cachep->c_next) { in cachefs_mount()
352 if (cachep->c_dirvp == cachedirvp) in cachefs_mount()
357 if (cachep == NULL) { in cachefs_mount()
358 cachep = cachefs_cache_create(); in cachefs_mount()
359 error = cachefs_cache_activate_ro(cachep, cachedirvp); in cachefs_mount()
361 cachefs_cache_destroy(cachep); in cachefs_mount()
362 cachep = NULL; in cachefs_mount()
366 cachefs_cache_activate_rw(cachep); in cachefs_mount()
[all …]
H A Dcachefs_fscache.c70 int fscdir_create(cachefscache_t *cachep, char *namep, fscache_t *fscp);
71 int fscdir_find(cachefscache_t *cachep, ino64_t fsid, fscache_t *fscp);
92 fscache_create(cachefscache_t *cachep) in fscache_create() argument
107 fscp->fs_cache = cachep; in fscache_create()
221 cachefscache_t *cachep = fscp->fs_cache; in fscache_setup() local
223 ASSERT((cachep->c_flags & CACHE_NOCACHE) == 0); in fscache_setup()
226 error = fscdir_find(cachep, fsid, fscp); in fscache_setup()
230 (cachep->c_flags & CACHE_NOFILL)) { in fscache_setup()
246 error = fscdir_create(cachep, namep, fscp); in fscache_setup()
287 if ((cachep->c_flags & CACHE_NOFILL) == 0) in fscache_setup()
[all …]
H A Dcachefs_cnode.c274 cachefscache_t *cachep; in cachefs_cnode_inactive() local
281 cachep = fscp->fs_cache; in cachefs_cnode_inactive()
282 ASSERT(cachep != NULL); in cachefs_cnode_inactive()
406 cachefs_rlent_moveto(cachep, CACHEFS_RL_FREE, in cachefs_cnode_inactive()
422 cachefs_rlent_verify(cachep, CACHEFS_RL_ACTIVE, in cachefs_cnode_inactive()
427 cachefs_rlent_moveto(cachep, CACHEFS_RL_GC, mdp->md_rlno, in cachefs_cnode_inactive()
701 cachefscache_t *cachep = fscp->fs_cache; in cachefs_cnode_init() local
792 if ((cachep->c_flags & CACHE_CHECK_RLTYPE) && in cachefs_cnode_init()
797 mutex_enter(&cachep->c_contentslock); in cachefs_cnode_init()
798 error = cachefs_rl_entry_get(cachep, in cachefs_cnode_init()
[all …]
H A Dcachefs_ioctl.c87 static int cachefs_unpackall_list(cachefscache_t *cachep,
554 cachefscache_t *cachep = fscp->fs_cache; in cachefs_unpackall() local
564 error = cachefs_unpackall_list(cachep, CACHEFS_RL_PACKED); in cachefs_unpackall()
567 error = cachefs_unpackall_list(cachep, CACHEFS_RL_PACKED_PENDING); in cachefs_unpackall()
576 cachefs_unpackall_list(cachefscache_t *cachep, enum cachefs_rl_type type) in cachefs_unpackall_list() argument
587 error = cachefs_rlent_data(cachep, &rl_ent, NULL); in cachefs_unpackall_list()
602 mutex_enter(&cachep->c_fslistlock); in cachefs_unpackall_list()
603 fscp = fscache_list_find(cachep, rl_ent.rl_fsid); in cachefs_unpackall_list()
605 fscp = fscache_create(cachep); in cachefs_unpackall_list()
613 mutex_exit(&cachep->c_fslistlock); in cachefs_unpackall_list()
[all …]
H A Dcachefs_dir.c88 cachefscache_t *cachep = fscp->fs_cache; in cachefs_dir_look() local
161 if (CACHEFS_LOG_LOGGING(cachep, CACHEFS_LOG_RFDIR)) in cachefs_dir_look()
162 cachefs_log_rfdir(cachep, error, fscp->fs_cfsvfsp, in cachefs_dir_look()
762 cachefscache_t *cachep = fscp->fs_cache; in cachefs_dir_read() local
816 if (CACHEFS_LOG_LOGGING(cachep, CACHEFS_LOG_RFDIR)) in cachefs_dir_read()
817 cachefs_log_rfdir(cachep, error, fscp->fs_cfsvfsp, in cachefs_dir_read()
920 cachefscache_t *cachep = fscp->fs_cache; in cachefs_dir_fill_common() local
977 if (CACHEFS_LOG_LOGGING(cachep, CACHEFS_LOG_FILLDIR)) in cachefs_dir_fill_common()
978 cachefs_log_filldir(cachep, error, fscp->fs_cfsvfsp, in cachefs_dir_fill_common()
1144 cachefscache_t *cachep = C_TO_FSCACHE(dcp)->fs_cache; in cachefs_dir_extend() local
[all …]
H A Dcachefs_filegrp.c795 cachefscache_t *cachep = fscp->fs_cache; in filegrp_create_metadata() local
805 cachefs_cache_dirty(cachep, 1); in filegrp_create_metadata()
855 if (CACHEFS_LOG_LOGGING(cachep, CACHEFS_LOG_MDCREATE)) in filegrp_create_metadata()
856 cachefs_log_mdcreate(cachep, 0, in filegrp_create_metadata()
1412 cachefscache_t *cachep = fscp->fs_cache; in filegrpattr_find() local
1451 if ((cachep->c_flags & CACHE_CHECK_RLTYPE) && in filegrpattr_find()
1455 mutex_enter(&cachep->c_contentslock); in filegrpattr_find()
1456 error = cachefs_rl_entry_get(cachep, ahp->ach_rlno, in filegrpattr_find()
1459 mutex_exit(&cachep->c_contentslock); in filegrpattr_find()
1467 mutex_exit(&cachep->c_contentslock); in filegrpattr_find()
H A Dcachefs_vnops.c495 cachefscache_t *cachep; in cachefs_close() local
537 cachep = fscp->fs_cache; in cachefs_close()
538 mutex_enter(&cachep->c_contentslock); in cachefs_close()
539 ASSERT(cachep->c_rootdaemonid != 0); in cachefs_close()
540 cachep->c_rootdaemonid = 0; in cachefs_close()
541 mutex_exit(&cachep->c_contentslock); in cachefs_close()
1749 struct cachefscache *cachep; in cachefs_ioctl() local
1959 for (cachep = cachefs_cachelist; cachep != NULL; in cachefs_ioctl()
1960 cachep = cachep->c_next) { in cachefs_ioctl()
1961 mutex_enter(&cachep->c_fslistlock); in cachefs_ioctl()
[all …]
/titanic_44/usr/src/uts/common/sys/fs/
H A Dcachefs_fscache.h200 fscache_t *fscache_create(cachefscache_t *cachep);
216 fscache_t *fscache_list_find(cachefscache_t *cachep, ino64_t fsid);
217 void fscache_list_add(cachefscache_t *cachep, fscache_t *fscp);
218 void fscache_list_remove(cachefscache_t *cachep, fscache_t *fscp);
219 void fscache_list_gc(cachefscache_t *cachep);
220 int fscache_list_mounted(cachefscache_t *cachep);
222 int fscache_name_to_fsid(cachefscache_t *cachep, char *namep, ino64_t *fsidp);
H A Dcachefs_fs.h1114 void cachefs_cache_destroy(cachefscache_t *cachep);
1115 int cachefs_cache_activate_ro(cachefscache_t *cachep, vnode_t *cdvp);
1116 void cachefs_cache_activate_rw(cachefscache_t *cachep);
1117 void cachefs_cache_dirty(struct cachefscache *cachep, int lockit);
1118 int cachefs_cache_rssync(struct cachefscache *cachep);
1119 void cachefs_cache_sync(struct cachefscache *cachep);
1120 uint_t cachefs_cache_unique(cachefscache_t *cachep);
1198 void cachefs_rlent_moveto_nolock(cachefscache_t *cachep,
1203 void cachefs_rl_changefileno(cachefscache_t *cachep, uint_t entno,
1205 int cachefs_rlent_data(cachefscache_t *cachep, rl_entry_t *valp,
[all …]
/titanic_44/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/
H A Dpicllibdevinfo.c187 frutree_cache_t *cachep = NULL; in create_port_config_info() local
198 cachep = (frutree_cache_t *)malloc(sizeof (frutree_cache_t)); in create_port_config_info()
199 if (cachep == NULL) { in create_port_config_info()
225 cachep->buf[0] = '\0'; in create_port_config_info()
226 cachep->next = NULL; in create_port_config_info()
227 (void) snprintf(cachep->buf, in create_port_config_info()
228 sizeof (cachep->buf), in create_port_config_info()
252 devp->first = cachep; in create_port_config_info()
255 devp->last->next = cachep; in create_port_config_info()
256 devp->last = cachep; in create_port_config_info()
[all …]
H A Dpiclfrutree.c2395 free_cache(frutree_cache_t *cachep) in free_cache() argument
2398 if (cachep == NULL) in free_cache()
2401 while (cachep != NULL) { in free_cache()
2402 tmp = cachep; in free_cache()
2403 cachep = cachep->next; in free_cache()
2489 frutree_cache_t *cachep = NULL; in create_fru_children() local
2491 cachep = device.first; in create_fru_children()
2492 if (cachep == NULL) { in create_fru_children()
2521 while (cachep != NULL) { in create_fru_children()
2522 if (write(fd, cachep->buf, strlen(cachep->buf)) in create_fru_children()
[all …]
/titanic_44/usr/src/cmd/fs.d/autofs/
H A Dautod_nfs.c2612 struct portmap_cache *cachep, *prev, *next = NULL, *cp; local
2632 for (cachep = portmap_cache_head; cachep;
2633 cachep = cachep->cache_next) {
2634 if (timenow > cachep->cache_time) {
2680 if (cachep->cache_hostname == NULL ||
2681 prog != cachep->cache_prog || vers != cachep->cache_vers ||
2682 strcmp(nconf->nc_proto, cachep->cache_proto) != 0 ||
2683 strcmp(nconf->nc_protofmly, cachep->cache_protofmly) != 0 ||
2684 strcmp(hostname, cachep->cache_hostname) != 0)
2692 addrp->len = cachep->cache_srv_addr.len;
[all …]
/titanic_44/usr/src/lib/libldap5/sources/ldap/common/
H A Dmemcache.c255 LDAPMemCache **cachep ) in ldap_memcache_init() argument
261 if ( cachep == NULL ) { in ldap_memcache_init()
265 if ((*cachep = (LDAPMemCache*)NSLDAPI_CALLOC(1, in ldap_memcache_init()
272 (*cachep)->ldmemc_ttl = ttl; in ldap_memcache_init()
273 (*cachep)->ldmemc_size = size; in ldap_memcache_init()
274 (*cachep)->ldmemc_lds = NULL; in ldap_memcache_init()
280 memcpy(&((*cachep)->ldmemc_lock_fns), thread_fns, in ldap_memcache_init()
283 memset(&((*cachep)->ldmemc_lock_fns), 0, in ldap_memcache_init()
287 (*cachep)->ldmemc_lock = LDAP_MEMCACHE_MUTEX_ALLOC( *cachep ); in ldap_memcache_init()
298 (*cachep)->ldmemc_basedns = (char**)NSLDAPI_CALLOC(i + 1, in ldap_memcache_init()
[all …]
H A Dllib-lldap519 …tl, unsigned long size, char **baseDNs, struct ldap_thread_fns *thread_fns, LDAPMemCache **cachep);
522 int ldap_memcache_get(LDAP *ld, LDAPMemCache **cachep);
/titanic_44/usr/src/cmd/rcm_daemon/common/
H A Dfilesys_rcm.c785 free_cache(cache_t **cachep) in free_cache() argument
792 if ((cachep == NULL) || (*cachep == NULL)) in free_cache()
795 if ((*cachep)->mounts) { in free_cache()
797 for (index = 0; index < (*cachep)->hash_size; index++) { in free_cache()
798 entry = (*cachep)->mounts[index]; in free_cache()
805 free((*cachep)->mounts); in free_cache()
808 free(*cachep); in free_cache()
809 *cachep = NULL; in free_cache()
862 cache_sync(rcm_handle_t *hd, cache_t **cachep) in cache_sync() argument
871 if ((hd == NULL) || (cachep == NULL)) { in cache_sync()
[all …]
/titanic_44/usr/src/cmd/keyserv/
H A Dsetkey.c1392 struct cachekey3_list **cpp, *cp, *cachep; in getdeskey3() local
1420 if ((cachep = cache_retrieve(keylen, algtype, uid, in getdeskey3()
1422 if (cmpkeybuf3(cachep->secret, cu->secretkey)) { in getdeskey3()
1433 cp = cachep; in getdeskey3()
/titanic_44/usr/src/head/
H A Dldap.h1335 LDAPMemCache **cachep);
1337 int LDAP_CALL ldap_memcache_get(LDAP *ld, LDAPMemCache **cachep);