/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | netgroup.c | 66 static struct cache_entry *cache_head; variable 227 for (ce = cache_head; ce; ce = ce->cache_next) { in cache_check() 240 for (prev = NULL, ce = cache_head; ce; in cache_check() 249 cache_head = NULL; in cache_check() 322 entry->cache_next = cache_head; in cache_enter() 323 cache_head = entry; in cache_enter() 334 cache_free(cache_head); in netgrp_cache_flush() 335 cache_head = NULL; in netgrp_cache_flush()
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | network_rcm.c | 73 static net_cache_t cache_head; variable 140 cache_head.next = &cache_tail; in rcm_mod_init() 141 cache_head.prev = NULL; in rcm_mod_init() 235 probe = cache_head.next; in net_unregister() 240 probe = cache_head.next; in net_unregister() 580 probe = cache_head.next; in cache_lookup() 615 node->prev = &cache_head; in cache_insert() 736 probe = cache_head.next; in update_cache() 752 probe = cache_head.next; in update_cache() 800 probe = cache_head.next; in free_cache() [all …]
|
H A D | bridge_rcm.c | 81 static link_cache_t cache_head; variable 147 cache_head.vc_next = &cache_tail; in rcm_mod_init() 148 cache_head.vc_prev = NULL; in rcm_mod_init() 149 cache_tail.vc_prev = &cache_head; in rcm_mod_init() 243 node = cache_head.vc_next; in bridge_unregister() 250 node = cache_head.vc_next; in bridge_unregister() 607 node = cache_head.vc_next; in cache_lookup() 641 node->vc_prev = &cache_head; in cache_insert() 749 node = cache_head.vc_next; in cache_update() 811 node = cache_head.vc_next; in cache_free() [all …]
|
H A D | vlan_rcm.c | 95 static link_cache_t cache_head; variable 170 cache_head.vc_next = &cache_tail; in rcm_mod_init() 171 cache_head.vc_prev = NULL; in rcm_mod_init() 172 cache_tail.vc_prev = &cache_head; in rcm_mod_init() 264 node = cache_head.vc_next; in vlan_unregister() 276 node = cache_head.vc_next; in vlan_unregister() 776 node = cache_head.vc_next; in cache_lookup() 817 node->vc_prev = &cache_head; in cache_insert() 973 node = cache_head.vc_next; in cache_update() 1049 node = cache_head.vc_next; in cache_free() [all …]
|
H A D | ibpart_rcm.c | 95 static link_cache_t cache_head; variable 170 cache_head.pc_next = &cache_tail; in rcm_mod_init() 171 cache_head.pc_prev = NULL; in rcm_mod_init() 172 cache_tail.pc_prev = &cache_head; in rcm_mod_init() 264 node = cache_head.pc_next; in ibpart_unregister() 276 node = cache_head.pc_next; in ibpart_unregister() 792 node = cache_head.pc_next; in cache_lookup() 833 node->pc_prev = &cache_head; in cache_insert() 1001 node = cache_head.pc_next; in cache_update() 1078 node = cache_head.pc_next; in cache_free() [all …]
|
H A D | vnic_rcm.c | 95 static link_cache_t cache_head; variable 170 cache_head.vc_next = &cache_tail; in rcm_mod_init() 171 cache_head.vc_prev = NULL; in rcm_mod_init() 172 cache_tail.vc_prev = &cache_head; in rcm_mod_init() 264 node = cache_head.vc_next; in vnic_unregister() 276 node = cache_head.vc_next; in vnic_unregister() 779 node = cache_head.vc_next; in cache_lookup() 820 node->vc_prev = &cache_head; in cache_insert() 985 node = cache_head.vc_next; in cache_update() 1061 node = cache_head.vc_next; in cache_free() [all …]
|
H A D | aggr_rcm.c | 96 static link_cache_t cache_head; variable 176 cache_head.vc_next = &cache_tail; in rcm_mod_init() 177 cache_head.vc_prev = NULL; in rcm_mod_init() 178 cache_tail.vc_prev = &cache_head; in rcm_mod_init() 226 node = cache_head.vc_next; in rcm_mod_fini() 230 node = cache_head.vc_next; in rcm_mod_fini() 331 node = cache_head.vc_next; in aggr_unregister() 344 node = cache_head.vc_next; in aggr_unregister() 851 node = cache_head.vc_next; in cache_lookup() 882 node->vc_prev = &cache_head; in cache_insert() [all …]
|
H A D | ip_rcm.c | 155 static ip_cache_t cache_head; variable 251 cache_head.ip_next = &cache_tail; in rcm_mod_init() 252 cache_head.ip_prev = NULL; in rcm_mod_init() 355 probe = cache_head.ip_next; in ip_unregister() 365 probe = cache_head.ip_next; in ip_unregister() 972 probe = cache_head.ip_next; in cache_lookup() 1028 node->ip_prev = &cache_head; in cache_insert() 1289 probe = cache_head.ip_next; in update_cache() 1314 probe = cache_head.ip_next; in update_cache() 1390 probe = cache_head.ip_next; in free_cache() [all …]
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | svcauth_des.c | 90 static struct cache_entry *cache_head; /* cache (in LRU order) */ variable 509 cache_head = &_rpc_authdes_cache[0]; in cache_init() 515 cache_head->index = 0; in cache_init() 517 cache_head->next = &_rpc_authdes_cache[1]; in cache_init() 518 cache_head->prev = cache_tail; in cache_init() 519 cache_tail->next = cache_head; in cache_init() 534 return (cache_head->index); /* list in lru order */ in cache_victim() 557 } else if (cache_head == curr) { in cache_ref() 558 cache_head = cache_head->next; in cache_ref() 563 curr->next = cache_head; /* fix thy self... */ in cache_ref() [all …]
|
/illumos-gate/usr/src/stand/lib/fs/common/ |
H A D | cache.c | 82 #define cache_head(h, f, t, n) \ macro 278 static head_t ic_head = cache_head(ic_head, cmp_icache, ic_t, ICACHE_SIZE); 373 static head_t dc_head = cache_head(dc_head, cmp_dcache, dc_t, DCACHE_SIZE); 501 static head_t bc_head = cache_head(bc_head, cmp_bcache, bc_t, BCACHE_SIZE);
|
/illumos-gate/usr/src/lib/libmtmalloc/common/ |
H A D | mtmalloc_impl.h | 63 typedef struct cache_head { struct
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_nfs.c | 129 static struct cache_entry *cache_head = NULL; variable 3702 entry->cache_next = cache_head; in cache_enter() 3703 cache_head = entry; in cache_enter() 3725 for (ce = cache_head; ce; ce = ce->cache_next) { in cache_check() 3729 for (prev = NULL, ce = cache_head; ce; in cache_check() 3736 cache_head = NULL; in cache_check() 3799 cache_free(cache_head); in cache_flush() 3800 cache_head = NULL; in cache_flush()
|