Lines Matching refs:kdb_name_table
60 static char *kdb_name_table[100]; /* arbitrary size */ variable
125 for (i = 0; i < ARRAY_SIZE(kdb_name_table); ++i) { in kdbnearsym()
126 if (kdb_name_table[i] && in kdbnearsym()
127 strcmp(kdb_name_table[i], knt1) == 0) in kdbnearsym()
130 if (i >= ARRAY_SIZE(kdb_name_table)) { in kdbnearsym()
131 debug_kfree(kdb_name_table[0]); in kdbnearsym()
132 memcpy(kdb_name_table, kdb_name_table+1, in kdbnearsym()
133 sizeof(kdb_name_table[0]) * in kdbnearsym()
134 (ARRAY_SIZE(kdb_name_table)-1)); in kdbnearsym()
137 knt1 = kdb_name_table[i]; in kdbnearsym()
138 memcpy(kdb_name_table+i, kdb_name_table+i+1, in kdbnearsym()
139 sizeof(kdb_name_table[0]) * in kdbnearsym()
140 (ARRAY_SIZE(kdb_name_table)-i-1)); in kdbnearsym()
142 i = ARRAY_SIZE(kdb_name_table) - 1; in kdbnearsym()
143 kdb_name_table[i] = knt1; in kdbnearsym()
144 symtab->sym_name = kdb_name_table[i]; in kdbnearsym()
164 for (i = 0; i < ARRAY_SIZE(kdb_name_table); ++i) { in kdbnearsym_cleanup()
165 if (kdb_name_table[i]) { in kdbnearsym_cleanup()
166 debug_kfree(kdb_name_table[i]); in kdbnearsym_cleanup()
167 kdb_name_table[i] = NULL; in kdbnearsym_cleanup()