/* If we have extended version info, rely on it */ if (info->index.vers_ext_crc) {
for_each_modversion_info_ext(version_ext, info) { if (strcmp(version_ext.name, symname) != 0) continue; if (*version_ext.crc == *crc) return1;
pr_debug("Found checksum %X vs module %X\n",
*crc, *version_ext.crc); goto bad_version;
}
pr_warn_once("%s: no extended symbol version for %s\n",
info->name, symname); return1;
}
/* No versions at all? modprobe --force does this. */ if (versindex == 0) return try_to_force_load(mod, symname) == 0;
/* First part is kernel version, which we ignore if module has crcs. */ int same_magic(constchar *amagic, constchar *bmagic, bool has_crcs)
{ if (has_crcs) {
amagic += strcspn(amagic, " ");
bmagic += strcspn(bmagic, " ");
} return strcmp(amagic, bmagic) == 0;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.