Lines Matching defs:result
250 kload_error result = kload_error_none;
279 result = kload_error_none; // fixme: should this be USAGE error?
309 result = kload_error_invalid_argument;
334 result = kload_set_load_addresses_from_kernel(dgraph, kernel_file,
337 result = kload_set_load_addresses_from_kernel(dgraph);
339 if (result == kload_error_already_loaded) {
349 } else if (result != kload_error_none) {
375 result = kload_error_unspecified;
406 result = kload_error_link_load;
418 result = __kload_load_modules(dgraph, kernel_file,
423 result = __kload_load_modules(dgraph);
457 result = kload_error_link_load;
465 result = kload_error_link_load;
470 return result;
487 kload_error result = kload_error_none;
501 result = kload_error_unspecified;
505 result = kload_error_invalid_argument;
509 result = kload_load_dgraph(&dependency_graph, kernel_file,
515 return result;
749 kload_error result = kload_error_none;
766 result = kload_map_dgraph(dgraph, kernel_file);
768 result = kload_map_dgraph(dgraph);
770 if (result != kload_error_none) {
776 result = __kload_patch_dgraph(dgraph, kernel_file);
778 result = __kload_patch_dgraph(dgraph);
780 if (result != kload_error_none) {
804 result = kload_error_kernel_permission;
819 result = kload_error_link_load;
831 result = __kload_make_opaque_basefile(dgraph, (struct mach_header *) kernel_base_addr);
832 if (result != kload_error_none) {
849 result = kload_error_link_load;
887 result = kload_error_link_load;
922 result = kload_error_link_load;
938 result = kload_error_link_load;
957 result = __kload_load_module(dgraph, current_entry,
962 result = __kload_load_module(dgraph, current_entry,
965 if (result != kload_error_none) {
972 result = __kload_keep_symbols(current_entry);
974 if (result != kload_error_none) {
986 result = __kload_set_module_dependencies(current_entry);
987 if ( ! (result == kload_error_none ||
988 result == kload_error_already_loaded) ) {
1016 result = kload_error_unspecified;
1019 result = kload_error_user_abort;
1031 result = __kload_start_module(current_entry);
1032 if ( ! (result == kload_error_none ||
1033 result == kload_error_already_loaded) ) {
1074 return result;
1102 kload_error result = kload_error_none;
1122 result = kload_error_none;
1161 result = kload_error_unspecified;
1192 result = kload_error_unspecified;
1195 result = kload_error_user_abort;
1207 result = kload_error_link_load;
1221 result = kload_error_link_load;
1234 result = kload_error_none;
1259 result = kload_error_link_load;
1264 result = kload_error_none;
1284 result = kload_error_link_load;
1301 result = kload_error_link_load;
1348 result = kload_error_link_load;
1377 result = kload_error_no_memory; // FIXME: kernel error?
1393 result = kload_error_kernel_error;
1422 result = kload_error_kernel_error;
1469 return result;
1562 kload_error result = kload_error_none;
1575 result = kload_error_link_load;
1587 result = kload_map_entry(entry);
1588 if (result != kload_error_none) {
1594 return result;
1604 kload_error result = kload_error_none;
1608 result = kload_error_invalid_argument;
1620 result = kload_error_none;
1632 result = kload_error_link_load;
1658 result = kload_error_executable_bad;
1664 return result;
1675 kload_error result = kload_error_none;
1684 result = kload_map_dgraph(dgraph, kernel_file);
1685 if (result != kload_error_none) {
1697 result = kload_error_unspecified;
1706 result = kload_error_unspecified;
1713 result = kload_error_unspecified;
1718 result = kload_error_unspecified;
1725 return result;
1737 kload_error result = kload_error_none;
1744 result = kload_map_dgraph(dgraph, kernel_file);
1745 if (result != kload_error_none) {
1758 result = kload_error_unspecified;
1767 result = kload_error_unspecified;
1778 result = kload_error_unspecified;
1791 result = kload_error_unspecified;
1813 result = kload_error_invalid_argument;
1819 return result;
1831 kload_error result = kload_error_none;
1842 result = kload_map_dgraph(dgraph, kernel_file);
1843 if (result != kload_error_none) {
1860 result = kload_error_kernel_error;
1884 result = cresult;
1896 return result;
1907 kload_error result = kload_error_none;
1920 result = kload_map_dgraph(dgraph);
1921 if (result != kload_error_none) {
1953 result = cresult;
1959 return result;
2012 kload_error result = kload_error_none;
2060 result = kload_error_unspecified;
2070 result = kload_error_unspecified;
2082 result = kload_error_loaded_version_differs;
2084 result = kload_error_dependency_loaded_version_differs;
2096 result = kload_error_already_loaded;
2107 return result;
2121 kload_error result = kload_error_none;
2126 result = kload_error_link_load;
2151 result = kload_error_link_load; // FIXME: need a "patch" error?
2166 result = kload_error_link_load; // FIXME: need a "patch" error?
2171 result = kload_error_link_load; // FIXME: need a "patch" error?
2180 result = kload_error_link_load; // FIXME: need more specific error?
2185 return result;
2201 kload_error result = kload_error_none;
2228 result = kload_error_invalid_argument;
2235 result = kload_error_no_memory;
2262 result = kload_error_unspecified;
2298 result = kload_error_unspecified;
2317 return result;
2326 kload_error result = kload_error_none;
2337 result = kload_error_already_loaded;
2369 result = kload_error_link_load;
2380 return result;
2388 kload_error result = kload_error_none;
2399 result = kload_error_already_loaded;
2424 result = kload_error_link_load;
2434 return result;
2600 int result = 0; // assume it doesn't exist
2604 result = 1; // the file does exist; we don't care beyond that
2610 result = 0; // the file doesn't exist
2614 result = -1; // unknown error
2620 return result;