Lines Matching refs:hash_table_entry
70 struct hash_table_entry {
73 struct hash_table_entry *next;
89 struct hash_table_entry *inode_table_hash[65536], *directory_table_hash[65536];
105 int add_entry(struct hash_table_entry *hash_table[], int start, int bytes)
108 struct hash_table_entry *hash_table_entry;
110 if((hash_table_entry = malloc(sizeof(struct hash_table_entry))) == NULL) {
115 hash_table_entry->start = start;
116 hash_table_entry->bytes = bytes;
117 hash_table_entry->next = hash_table[hash];
118 hash_table[hash] = hash_table_entry;
124 int lookup_entry(struct hash_table_entry *hash_table[], int start)
127 struct hash_table_entry *hash_table_entry;
129 for(hash_table_entry = hash_table[hash]; hash_table_entry;
130 hash_table_entry = hash_table_entry->next)
131 if(hash_table_entry->start == start)
132 return hash_table_entry->bytes;