Lines Matching refs:nsc_ctx_t

63 static nsc_db_t *nsc_get_db(nsc_ctx_t *, int);
66 static uint_t reap_cache(nsc_ctx_t *, uint_t, uint_t);
67 static void delete_entry(nsc_db_t *, nsc_ctx_t *, nsc_entry_t *);
87 static void getxy_keepalive(nsc_ctx_t *, nsc_db_t *, int, int);
89 static void ctx_info(nsc_ctx_t *);
90 static void ctx_info_nolock(nsc_ctx_t *);
91 static void ctx_invalidate(nsc_ctx_t *);
107 static nsc_ctx_t *init_cache_ctx(int);
108 static void reaper(nsc_ctx_t *);
109 static void revalidate(nsc_ctx_t *);
179 typedef void (*cache_init_ctx_t)(nsc_ctx_t *);
202 nsc_ctx_t *cache_ctx_p[CACHE_CTX_COUNT] = { 0 };
227 get_cache_ctx(char *dbname, nsc_ctx_t **ctx) { in get_cache_ctx()
272 nsc_get_db(nsc_ctx_t *ctx, int dbop) { in nsc_get_db()
828 nsc_ctx_t *ctx; in _nscd_cfg_cache_notify()
912 nsc_ctx_t *ctx; in _nscd_cfg_cache_get_stat()
960 nsc_info(nsc_ctx_t *ctx, char *dbname, nscd_cfg_cache_t cfg[], in nsc_info()
965 nsc_ctx_t *ctx1; in nsc_info()
966 nsc_ctx_t ctx2; in nsc_info()
1003 ctx_info_nolock(nsc_ctx_t *ctx) { in ctx_info_nolock()
1019 ctx_info(nsc_ctx_t *ctx) { in ctx_info()
1046 nsc_ctx_t *ctx; in nsc_dump()
1126 start_threads(nsc_ctx_t *ctx) in start_threads()
1250 nsc_ctx_t *ctx; in check_config()
1302 check_db_file(nsc_ctx_t *ctx, nscd_cfg_cache_t cfg, in check_db_file()
1350 nsc_ctx_t *ctx; in lookup_int()
1796 static nsc_ctx_t *
1798 nsc_ctx_t *ctx; in init_cache_ctx()
1800 ctx = calloc(1, sizeof (nsc_ctx_t)); in init_cache_ctx()
1817 revalidate(nsc_ctx_t *ctx) in revalidate()
1846 getxy_keepalive(nsc_ctx_t *ctx, nsc_db_t *nscdb, int keep, int interval) in getxy_keepalive()
1977 nsc_invalidate(nsc_ctx_t *ctx, char *dbname, nsc_ctx_t **ctxs) in nsc_invalidate()
2017 ctx_invalidate(nsc_ctx_t *ctx) in ctx_invalidate()
2053 delete_entry(nsc_db_t *nscdb, nsc_ctx_t *ctx, nsc_entry_t *entry) { in delete_entry()
2075 nsc_ctx_t *ctx; in lookup_cache()
2185 reaper(nsc_ctx_t *ctx) in reaper()
2251 reap_cache(nsc_ctx_t *ctx, uint_t nodes_per_interval, in reap_cache()