Home
last modified time | relevance | path

Searched refs:gc_cycle (Results 1 – 13 of 13) sorted by relevance

/glibc-2.36/nscd/
Dnscd_netgroup.c48 int gc_cycle; in __nscd_setnetgrent() local
55 mapped = __nscd_get_map_ref (GETFDNETGR, "netgroup", &map_handle, &gc_cycle); in __nscd_setnetgrent()
73 if (mapped->head->gc_cycle != gc_cycle) in __nscd_setnetgrent()
143 if (__nscd_drop_map_ref (mapped, &gc_cycle) != 0) in __nscd_setnetgrent()
148 if ((gc_cycle & 1) != 0 || ++nretries == 5 || retval == -1) in __nscd_setnetgrent()
206 int gc_cycle; in __nscd_innetgr() local
209 mapped = __nscd_get_map_ref (GETFDNETGR, "netgroup", &map_handle, &gc_cycle); in __nscd_innetgr()
226 if (mapped->head->gc_cycle != gc_cycle) in __nscd_innetgr()
267 if (__nscd_drop_map_ref (mapped, &gc_cycle) != 0) in __nscd_innetgr()
272 if ((gc_cycle & 1) != 0 || ++nretries == 5 || retval == -1) in __nscd_innetgr()
Dnscd_getgr_r.c87 int gc_cycle; in nscd_getgr_r() local
97 &gc_cycle); in nscd_getgr_r()
119 if (mapped->head->gc_cycle != gc_cycle) in nscd_getgr_r()
241 if (gr_name != NULL && mapped->head->gc_cycle != gc_cycle) in nscd_getgr_r()
249 if (gr_name != NULL && mapped->head->gc_cycle != gc_cycle) in nscd_getgr_r()
288 retval = mapped->head->gc_cycle != gc_cycle ? -2 : -1; in nscd_getgr_r()
307 if (__nscd_drop_map_ref (mapped, &gc_cycle) != 0) in nscd_getgr_r()
312 if ((gc_cycle & 1) != 0 || ++nretries == 5 || retval == -1) in nscd_getgr_r()
Dnscd_getai.c56 int gc_cycle; in __nscd_getai() local
63 &gc_cycle); in __nscd_getai()
84 if (mapped->head->gc_cycle != gc_cycle) in __nscd_getai()
160 if (mapped->head->gc_cycle != gc_cycle) in __nscd_getai()
193 if (__nscd_drop_map_ref (mapped, &gc_cycle) != 0) in __nscd_getai()
198 if ((gc_cycle & 1) != 0 || ++nretries == 5 || retval == -1) in __nscd_getai()
Dnscd_getserv_r.c81 int gc_cycle; in nscd_getserv_r() local
89 &gc_cycle); in nscd_getserv_r()
133 if (mapped->head->gc_cycle != gc_cycle) in nscd_getserv_r()
296 if (aliases_list != NULL && mapped->head->gc_cycle != gc_cycle) in nscd_getserv_r()
306 if (aliases_list != NULL && mapped->head->gc_cycle != gc_cycle) in nscd_getserv_r()
339 if (mapped->head->gc_cycle != gc_cycle) in nscd_getserv_r()
360 if (__nscd_drop_map_ref (mapped, &gc_cycle) != 0) in nscd_getserv_r()
365 if ((gc_cycle & 1) != 0 || ++nretries == 5 || retval == -1) in nscd_getserv_r()
Dnscd_gethst_r.c148 int gc_cycle; in nscd_gethst_r() local
155 &gc_cycle); in nscd_gethst_r()
182 if (mapped->head->gc_cycle != gc_cycle) in nscd_gethst_r()
369 if (addr_list != NULL && mapped->head->gc_cycle != gc_cycle) in nscd_gethst_r()
378 if (addr_list != NULL && mapped->head->gc_cycle != gc_cycle) in nscd_gethst_r()
411 if (mapped->head->gc_cycle != gc_cycle) in nscd_gethst_r()
435 if (__nscd_drop_map_ref (mapped, &gc_cycle) != 0) in nscd_gethst_r()
440 if ((gc_cycle & 1) != 0 || ++nretries == 5 || retval == -1) in nscd_gethst_r()
Dnscd_getpw_r.c86 int gc_cycle; in nscd_getpw_r() local
92 mapped = __nscd_get_map_ref (GETFDPW, "passwd", &map_handle, &gc_cycle); in nscd_getpw_r()
111 if (mapped->head->gc_cycle != gc_cycle) in nscd_getpw_r()
201 retval = mapped->head->gc_cycle != gc_cycle ? -2 : -1; in nscd_getpw_r()
220 if (__nscd_drop_map_ref (mapped, &gc_cycle) != 0) in nscd_getpw_r()
225 if ((gc_cycle & 1) != 0 || ++nretries == 5 || retval == -1) in nscd_getpw_r()
Dnscd_initgroups.c39 int gc_cycle; in __nscd_getgrouplist() local
45 mapped = __nscd_get_map_ref (GETFDGR, "group", &__gr_map_handle, &gc_cycle); in __nscd_getgrouplist()
66 if (mapped->head->gc_cycle != gc_cycle) in __nscd_getgrouplist()
161 if (__nscd_drop_map_ref (mapped, &gc_cycle) != 0) in __nscd_getgrouplist()
166 if ((gc_cycle & 1) != 0 || ++nretries == 5 || retval == -1) in __nscd_getgrouplist()
Dnscd-client.h320 volatile int32_t gc_cycle; member
412 __nscd_drop_map_ref (struct mapped_database *map, int *gc_cycle) in __nscd_drop_map_ref() argument
416 int now_cycle = map->head->gc_cycle; in __nscd_drop_map_ref()
417 if (__glibc_unlikely (now_cycle != *gc_cycle)) in __nscd_drop_map_ref()
420 *gc_cycle = now_cycle; in __nscd_drop_map_ref()
Dcache.c456 atomic_fetch_add_relaxed (&table->head->gc_cycle, 1); in prune_cache()
457 assert ((table->head->gc_cycle & 1) == 1); in prune_cache()
500 atomic_fetch_add_relaxed (&table->head->gc_cycle, 1); in prune_cache()
501 assert ((table->head->gc_cycle & 1) == 0); in prune_cache()
Dmem.c262 atomic_fetch_add_relaxed (&db->head->gc_cycle, 1); in gc()
263 assert ((db->head->gc_cycle & 1) == 1); in gc()
488 atomic_fetch_add_relaxed (&db->head->gc_cycle, 1); in gc()
489 assert ((db->head->gc_cycle & 1) == 0); in gc()
Dcachedumper.c94 DPS (gc_cycle); in nscd_print_cache()
Dnscd_helper.c424 if (__builtin_expect (((*gc_cyclep = cur->head->gc_cycle) & 1) != 0, in __nscd_get_map_ref()
Dconnections.c373 || (head->gc_cycle & 1) in verify_persistent_db()