Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mm_drv_bank.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
18#ifndef ZEPHYR_INCLUDE_DRIVERS_MM_DRV_BANK_H
19#define ZEPHYR_INCLUDE_DRIVERS_MM_DRV_BANK_H
20
21#include <zephyr/kernel.h>
23#include <stdint.h>
24
45
48
51};
52
65void sys_mm_drv_bank_init(struct sys_mm_drv_bank *bank, uint32_t bank_pages);
66
78
90
101
111 struct sys_memory_stats *stats);
112
117#endif /* ZEPHYR_INCLUDE_DRIVERS_MM_DRV_BANK_H */
uint32_t sys_mm_drv_bank_page_mapped(struct sys_mm_drv_bank *bank)
Track the mapping of a page in the specified memory bank.
void sys_mm_drv_bank_stats_reset_max(struct sys_mm_drv_bank *bank)
Reset the max number of pages mapped in the bank.
void sys_mm_drv_bank_stats_get(struct sys_mm_drv_bank *bank, struct sys_memory_stats *stats)
Retrieve the memory usage stats for the specified memory bank.
uint32_t sys_mm_drv_bank_page_unmapped(struct sys_mm_drv_bank *bank)
Track the unmapping of a page in the specified memory bank.
void sys_mm_drv_bank_init(struct sys_mm_drv_bank *bank, uint32_t bank_pages)
Initialize a memory bank's data structure.
Public kernel APIs.
Memory Statistics.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
Definition: mem_stats.h:24
Information about memory banks.
Definition: mm_drv_bank.h:42
uint32_t mapped_pages
Number of mapped pages.
Definition: mm_drv_bank.h:47
uint32_t max_mapped_pages
Maximum number of mapped pages since last counter reset.
Definition: mm_drv_bank.h:50
uint32_t unmapped_pages
Number of unmapped pages.
Definition: mm_drv_bank.h:44