Lines Matching refs:rval
109 kern_return_t rval = KERN_FAILURE;
122 require_action(context, finish, rval=KERN_RESOURCE_SHORTAGE);
133 require_action(context->kext, finish, rval=KERN_RESOURCE_SHORTAGE);
145 require_action(s_order_dict, finish, rval=KERN_RESOURCE_SHORTAGE);
148 rval = kxld_dict_init(s_order_dict, kxld_dict_uint32_hash,
150 require_noerr(rval, finish);
161 require_action(section_order, finish, rval=KERN_RESOURCE_SHORTAGE);
169 require_action(cputype_p, finish, rval=KERN_RESOURCE_SHORTAGE);
172 rval = kxld_dict_insert(s_order_dict, cputype_p, section_order);
173 require_noerr(rval, finish);
184 rval = KERN_SUCCESS;
195 return rval;
248 kern_return_t rval = KERN_FAILURE;
258 require_action(context, finish, rval=KERN_INVALID_ARGUMENT);
259 require_action(file, finish, rval=KERN_INVALID_ARGUMENT);
260 require_action(size, finish, rval=KERN_INVALID_ARGUMENT);
261 require_action(dependencies, finish, rval=KERN_INVALID_ARGUMENT);
262 require_action(ndependencies, finish, rval=KERN_INVALID_ARGUMENT);
263 require_action(linked_object_out, finish, rval=KERN_INVALID_ARGUMENT);
264 require_action(kmod_info_kern, finish, rval=KERN_INVALID_ARGUMENT);
266 rval = init_context(context, ndependencies);
267 require_noerr(rval, finish);
269 rval = init_kext_objects(context, file, size, name,
271 require_noerr(rval, finish);
275 require_action(linked_object, finish, rval=KERN_RESOURCE_SHORTAGE);
277 rval = kxld_kext_relocate(context->kext, vmaddr,
282 require_noerr(rval, finish);
284 rval = kxld_kext_export_linked_object(context->kext,
286 require_noerr(rval, finish);
291 rval = KERN_SUCCESS;
300 return rval;
308 kern_return_t rval = KERN_FAILURE;
312 rval = kxld_array_init(&context->objects,
314 require_noerr(rval, finish);
316 rval = kxld_array_init(&context->dependencies,
318 require_noerr(rval, finish);
320 rval = kxld_dict_init(&context->defined_symbols_by_name,
322 require_noerr(rval, finish);
324 rval = kxld_dict_init(&context->defined_cxx_symbols_by_value,
326 require_noerr(rval, finish);
328 rval = kxld_dict_init(&context->obsolete_symbols_by_name,
330 require_noerr(rval, finish);
332 rval = kxld_dict_init(&context->vtables_by_name, kxld_dict_string_hash,
334 require_noerr(rval, finish);
336 rval = KERN_SUCCESS;
338 return rval;
347 kern_return_t rval = KERN_FAILURE;
364 require_action(kext_object, finish, rval=KERN_FAILURE);
370 require_action(interface_object, finish, rval=KERN_FAILURE);
373 rval = kxld_kext_init(kext, kext_object, interface_object);
374 require_noerr(rval, finish);
377 rval = kxld_kext_export_symbols(kext,
381 require_noerr(rval, finish);
383 rval = kxld_kext_export_symbols(kext,
386 require_noerr(rval, finish);
394 rval = kxld_kext_export_vtables(kext,
398 require_noerr(rval, finish);
405 require_action(kext_object, finish, rval=KERN_FAILURE);
407 rval = kxld_kext_init(context->kext, kext_object, /* interface */ NULL);
408 require_noerr(rval, finish);
410 rval = kxld_kext_export_symbols(context->kext,
413 require_noerr(rval, finish);
415 rval = KERN_SUCCESS;
417 return rval;
426 KXLDObject *rval = NULL;
439 rval = object;
444 rval = object;
450 return rval;