arch_phys_wc_add(9)

arch_phys_wc_add9

Add a wc mtrr and handle errors if pat is unavailable

Usage

int arch_phys_wc_add(unsigned long base, unsigned long size);

Arguments

base

Physical base address

size

Size of region

Overview

If PAT is available, this does nothing. If PAT is unavailable, it attempts to add a WC MTRR covering size bytes starting at base and logs an error if this fails.

The called should provide a power of two size on an equivalent power of two boundary.

Drivers must store the return value to pass to mtrr_del_wc_if_needed, but drivers should not try to interpret that return value.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.