Lines Matching refs:vtables

69     KXLDArray vtables;
148 for (i = 0; i < kext->vtables.nitems; ++i) {
149 vtable = kxld_array_get_item(&kext->vtables, i);
152 kxld_array_reset(&kext->vtables);
172 for (i = 0; i < kext->vtables.maxitems; ++i) {
173 vtable = kxld_array_get_slot(&kext->vtables, i);
176 kxld_array_deinit(&kext->vtables);
331 const KXLDDict *defined_symbols, KXLDDict *vtables)
340 check(vtables);
345 for (i = 0; i < kext->vtables.nitems; ++i) {
346 vtable = kxld_array_get_item(&kext->vtables, i);
348 rval = kxld_dict_insert(vtables, vtable->name, vtable);
489 * number of vtables we're expecting, because every pointer will have a
497 rval = kxld_array_init(&kext->vtables, sizeof(KXLDVTable), nvtables);
511 vtable = kxld_array_get_item(&kext->vtables, i++);
518 * case, we just reduce the expect number of vtables by 1.
522 meta_vtable = kxld_array_get_item(&kext->vtables, i++);
527 kxld_array_resize(&kext->vtables, --nvtables);
532 require_action(i == kext->vtables.nitems, finish,
770 * We must patch vtables to ensure binary compatibility, and to perform that
771 * patching, we have to determine the vtables' inheritance relationships. The
784 * their super classes, and thus patch all of the vtables.
786 * We also have to take care to patch up the MetaClass's vtables. The
789 * the super MetaClass name, and thus find and patch their vtables as well.
927 /* Add the class's vtable to the set of patched vtables */
966 /* Add the MetaClass's vtable to the set of patched vtables */
1004 kxld_dict_string_cmp, kext->vtables.nitems);
1007 for (i = 0; i < kext->vtables.nitems; ++i) {
1008 vtable = kxld_array_get_item(&kext->vtables, i);