for (i = 0; i < LC_PAGES; i++) {
rc = __vmem_map_4k_page(addr, phys, PAGE_KERNEL, alloc); if (rc) { /* * Do not unmap allocated page tables in case the * allocation was not requested. In such a case the * request is expected coming from an atomic context, * while the unmap attempt might sleep.
*/ if (alloc) { for (--i; i >= 0; i--) {
addr -= PAGE_SIZE;
vmem_unmap_4k_page(addr);
}
} return rc;
}
addr += PAGE_SIZE;
phys += PAGE_SIZE;
} return 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.