/* * Given multiple namespaces per region, we do not want to * disable all the successfully registered peer namespaces upon * a single registration failure. If userspace is missing a * namespace that it expects it can disable/re-enable the region * to retry discovery after correcting the failure. * <regionX>/namespaces returns the current * "<async-registered>/<total>" namespace count.
*/
dev_err(dev, "failed to register %d namespace%s, continuing...\n",
err, err == 1 ? "" : "s"); return 0;
}
/* * Note, this assumes device_lock() context to not race * nd_region_notify()
*/
sysfs_put(nd_region->bb_state);
nd_region->bb_state = NULL;
/* * Try to flush caches here since a disabled region may be subject to * secure erase while disabled, and previous dirty data should not be * written back to a new instance of the region. This only matters on * bare metal where security commands are available, so silent failure * here is ok.
*/ if (cpu_cache_has_invalidate_memregion())
cpu_cache_invalidate_memregion(IORES_DESC_PERSISTENT_MEMORY);
}
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.