As per https://reviews.freebsd.org/D29733#696995 and https://reviews.freebsd.org/D29733#696995, introduce malloc_aligned() and add this and malloc_domainset_aligned() to malloc(9).
Details
Details
- Reviewers
kib royger imp - Group Reviewers
manpages - Commits
- rG6162cf885c00: malloc(9): Document/complete aligned variants
Tested via a version of https://reviews.freebsd.org/differential/diff/91630/ with the following modification in kvm_clock_attach():
- sc->timeinfos = malloc_domainset_aligned(round_page(mp_ncpus * + sc->timeinfos = malloc_aligned(round_page(mp_ncpus * sizeof(struct pvclock_vcpu_time_info)), PAGE_SIZE, M_DEVBUF, - DOMAINSET_RR(), M_WAITOK | M_ZERO); + M_WAITOK | M_ZERO);
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable