if (*index >= nvram_size) return 0;
off = *index; if ((off + count) > nvram_size)
count = nvram_size - off;
rc = opal_read_nvram(__pa(buf), count, off); if (rc != OPAL_SUCCESS) return -EIO;
*index += count; return count;
}
/* * This can be called in the panic path with interrupts off, so use * mdelay in that case.
*/ static ssize_t opal_nvram_write(char *buf, size_t count, loff_t *index)
{
s64 rc = OPAL_BUSY; int off;
if (*index >= nvram_size) return 0;
off = *index; if ((off + count) > nvram_size)
count = nvram_size - off;
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.