Jump to main content

##

# 2.7.9 CACHE_DataCacheLock Function

## C

    void CACHE_DataCacheLock(uint32_t addr, size_t len)

## Summary

Fetch and lock a block of data in the data cache.

## Description

Fetch and lock a block of data in the data cache.

## Parameters

Param | Description
--- | ---
addr | address (aligned to 32-byte boundary)
len | size of memory block (in number of bytes)

## Returns

None.

## Example

    CACHE_DataCacheLock(addr, len);

## Remarks

Global flush functions will invalidate and unlock any cache lines locked with this function.