Home
last modified time | relevance | path

Searched refs:inj_hash_t (Results 1 – 9 of 9) sorted by relevance

/titanic_50/usr/src/cmd/fm/fminject/common/
H A Dinj_hash.h48 } inj_hash_t; typedef
50 extern void inj_hash_create(inj_hash_t *, ulong_t (*)(void *),
52 extern void inj_hash_destroy(inj_hash_t *, void (*)(inj_var_t *, void *),
55 extern int inj_hash_insert(inj_hash_t *, void *, uintmax_t);
56 extern inj_var_t *inj_hash_lookup(inj_hash_t *, void *);
H A Dinj_string.h49 extern void inj_strhash_create(inj_hash_t *);
50 extern int inj_strhash_insert(inj_hash_t *, const char *, uintmax_t);
51 extern inj_var_t *inj_strhash_lookup(inj_hash_t *, const char *);
52 extern void inj_strhash_destroy(inj_hash_t *);
H A Dinj_decl.c44 static inj_hash_t inj_decls[ITEMTYPE_NITEMS];
47 static inj_hash_t *
52 assert(item >= 0 && item < sizeof (inj_decls) / sizeof (inj_hash_t)); in item2hash()
55 for (i = 0; i < sizeof (inj_decls) / sizeof (inj_hash_t); i++) in item2hash()
66 inj_hash_t *hash = item2hash(type); in inj_decl_lookup()
114 inj_decl_mem_create_enum(const char *name, inj_hash_t *vals) in inj_decl_mem_create_enum()
244 inj_hash_t *hash = item2hash(type); in inj_decl_finish()
H A Dinj_hash.c44 inj_hash_create(inj_hash_t *h, ulong_t (*hfn)(void *), in inj_hash_create()
77 inj_hash_destroy(inj_hash_t *h, void (*freefn)(inj_var_t *, void *), void *arg) in inj_hash_destroy()
93 inj_hash_insert(inj_hash_t *h, void *key, uintmax_t value) in inj_hash_insert()
112 inj_hash_lookup(inj_hash_t *h, void *key) in inj_hash_lookup()
H A Dinj_string.c231 inj_strhash_create(inj_hash_t *h) in inj_strhash_create()
237 inj_strhash_insert(inj_hash_t *h, const char *str, uintmax_t value) in inj_strhash_insert()
243 inj_strhash_lookup(inj_hash_t *h, const char *str) in inj_strhash_lookup()
249 inj_strhash_destroy(inj_hash_t *h) in inj_strhash_destroy()
H A Dinj.h101 inj_hash_t decl_memhash; /* Hash of said members */
122 inj_hash_t *_dlm_enumvals; /* If enum, hash of poss. values */
H A Dinj_defn.c43 static inj_hash_t inj_defns[3];
52 static inj_hash_t *
57 assert(item >= 0 && item < sizeof (inj_defns) / sizeof (inj_hash_t)); in item2hash()
60 for (i = 0; i < sizeof (inj_defns) / sizeof (inj_hash_t); i++) in item2hash()
71 inj_hash_t *hash = item2hash(inj_mem2item(type)); in inj_defn_lookup()
796 inj_hash_t *hash = item2hash(type); in inj_defn_finish()
H A Dinj_event.h48 extern inj_declmem_t *inj_decl_mem_create_enum(const char *, inj_hash_t *);
H A Dinj_grammar.y53 inj_hash_t *l_hash;
223 $$ = inj_zalloc(sizeof (inj_hash_t));