Home | History | Annotate | Download | only in err

Lines Matching defs:ERR_STRING_DATA

118 DEFINE_LHASH_OF(ERR_STRING_DATA);
126 static LHASH_OF(ERR_STRING_DATA) *error_hash = NULL;
131 /* err_string_data_hash is an lhash hash function for ERR_STRING_DATA. */
132 static uint32_t err_string_data_hash(const ERR_STRING_DATA *a) {
136 /* err_string_data_cmp is an lhash compare function for ERR_STRING_DATA. */
137 static int err_string_data_cmp(const ERR_STRING_DATA *a,
138 const ERR_STRING_DATA *b) {
145 static LHASH_OF(ERR_STRING_DATA) * error_hash_get_write_locked(void) {
153 /* err_get_item returns an ERR_STRING_DATA with an |error| member that
155 static ERR_STRING_DATA *err_get_item(uint32_t packed_error) {
156 ERR_STRING_DATA *ret = NULL, pattern;
169 /* err_set_item adds an ERR_STRING_DATA to the global hash of error strings and
171 static ERR_STRING_DATA *err_set_item(const ERR_STRING_DATA *err) {
172 ERR_STRING_DATA *old_item = NULL;
173 LHASH_OF(ERR_STRING_DATA) *hash;
178 lh_ERR_STRING_DATA_insert(hash, &old_item, (ERR_STRING_DATA*) err);
187 static ERR_STRING_DATA *err_del_item(uint32_t packed_error) {
188 ERR_STRING_DATA *old_item = NULL, pattern;