hashtab
struct hashtab voc[HTSIZE];
struct hashtab *h;
struct hashtab *h;
static struct wlist *hashtab[HASHSIZE];
for (wp = hashtab[hash(s)]; wp != NULL; wp = wp->next)
wp->next = hashtab[hashval];
hashtab[hashval] = wp;
Elf_Symindx *hashtab;
hashtab = (Elf_Symindx *)adjptr(map, edptr);
cursymcount = hashtab[1];
const Elf_Symindx *hashtab = (const Elf_Symindx *)
if (hashtab[0] > UINT32_MAX)
nbuckets = hashtab[0];
obj->nchains = (nchains = hashtab[1]);
obj->buckets = hashtab + 2;
const Elf_Symindx *hashtab = (const Elf_Symindx *)
if (hashtab[0] > UINT32_MAX)
nbuckets = hashtab[0];
nmaskwords = hashtab[2];
obj->buckets_gnu = (const uint32_t *)(hashtab + 4 + bloom_size32);
obj->symndx_gnu = (symndx = hashtab[1]);
obj->shift2_gnu = hashtab[3];
obj->bloom_gnu = (const Elf_Addr *)(hashtab + 4);
struct hashtab;
extern struct hashtab *devbasetab; /* devbase lookup */
extern struct hashtab *devroottab; /* attach at root lookup */
extern struct hashtab *devatab; /* devbase attachment lookup */
extern struct hashtab *devitab; /* device instance lookup */
extern struct hashtab *deaddevitab; /* removed instances lookup */
extern struct hashtab *selecttab; /* selects things that are "optional foo" */
extern struct hashtab *needcnttab; /* retains names marked "needs-count" */
extern struct hashtab *opttab; /* table of configured options */
extern struct hashtab *fsopttab; /* table of configured file systems */
extern struct hashtab *attrtab; /* attributes (locators, etc.) */
extern struct hashtab *attrdeptab; /* attribute dependencies */
extern struct hashtab *bdevmtab; /* block devm lookup */
extern struct hashtab *cdevmtab; /* character devm lookup */
struct hashtab *ht_new(void);
void ht_free(struct hashtab *);
int ht_insrep2(struct hashtab *, const char *, const char *, void *, int);
int ht_insrep(struct hashtab *, const char *, void *, int);
int ht_remove2(struct hashtab *, const char *, const char *);
int ht_remove(struct hashtab *, const char *);
void *ht_lookup2(struct hashtab *, const char *, const char *);
void *ht_lookup(struct hashtab *, const char *);
int ht_enumerate2(struct hashtab *, ht_callback2, void *);
int ht_enumerate(struct hashtab *, ht_callback, void *);
struct hashtab *fixdevmtab;
static struct hashtab *basetab; /* file base names */
static struct hashtab *pathtab; /* full path names */
ht_expand(struct hashtab *ht)
struct hashtab *ht;
struct hashtab *
struct hashtab *ht;
ht_free(struct hashtab *ht)
ht_insrep2(struct hashtab *ht, const char *nam1, const char *nam2, void *val, int replace)
ht_insrep(struct hashtab *ht, const char *nam, void *val, int replace)
ht_remove2(struct hashtab *ht, const char *name1, const char *name2)
ht_remove(struct hashtab *ht, const char *name)
ht_lookup2(struct hashtab *ht, const char *nam1, const char *nam2)
ht_lookup(struct hashtab *ht, const char *nam)
ht_enumerate2(struct hashtab *ht, ht_callback2 cbfunc2, void *arg)
ht_enumerate(struct hashtab *ht, ht_callback cbfunc, void *arg)
struct hashtab imp; \
static struct hashtab strings;
static void ht_expand(struct hashtab *);
static void ht_init(struct hashtab *, size_t);
ht_init(struct hashtab *ht, size_t sz)
struct hashtab **ot_ht;
struct hashtab *devbasetab; /* devbase lookup */
struct hashtab *devroottab; /* attach at root lookup */
struct hashtab *devatab; /* devbase attachment lookup */
struct hashtab *deaddevitab; /* removed instances lookup */
struct hashtab *selecttab; /* selects things that are "optional foo" */
struct hashtab *needcnttab; /* retains names marked "needs-count" */
struct hashtab *opttab; /* table of configured options */
struct hashtab *fsopttab; /* table of configured file systems */
do_option(struct hashtab *ht, struct nvlist **npp, struct nvlist ***next,
struct hashtab *stab)
undo_option(struct hashtab *ht, struct nvlist **npp,
struct hashtab *attrtab; /* attributes (locators, etc.) */
struct hashtab *attrdeptab; /* attribute dependencies */
struct hashtab *bdevmtab; /* block devm lookup */
struct hashtab *cdevmtab; /* character devm lookup */
static struct hashtab *mkopttab;
static int do_option(struct hashtab *, struct nvlist **,
const char *, struct hashtab *);
static int undo_option(struct hashtab *, struct nvlist **,
pentry(FILE *fp, struct hashtab *t, devmajor_t i, char p)
dentry(FILE *fp, struct hashtab *t, devmajor_t i, char p)
extern struct hashtab *attrtab;
static struct hashtab *cfhashtab; /* for config lookup */
struct hashtab *devitab; /* etc */
extern ndptr hashtab[]; /* hash table for macros etc. */
ndptr hashtab[HASHSIZE]; /* hash table for macros etc. */
for (s = hashtab[n]; s != NULL; s = s->s_next) {
s->s_next = hashtab[n];
hashtab[n] = s;
static struct syment *hashtab[HASHSIZE];
hp = hashtab[0];
hp = hashtab[hno++];
hp = hashtab[i];
hp->h_link = hashtab[h];
hashtab[h] = hp;
for (hp = hashtab[h]; hp != NULL; hp = hp->h_link)
static struct hent *hashtab[HSHSIZE]; /* Hash table proper */