当前位置:网站首页>B_QuRT_User_Guide(33)
B_QuRT_User_Guide(33)
2022-06-30 20:09:00 【weixin_38498942】
B_QuRT_User_Guide(33 )
21.16 qurt_mem_map_static_query_64()
21.16.1 功能文档
21.16.1.1 int int qurt_mem_map_static_query_64 ( qurt_addr_t ∗ vaddr, qurt_paddr- _64_t paddr_64, unsigned int page_size, qurt_mem_cache_mode_t cache_attribs, qurt_perm_t perm )
确定一个内存页是否被静态映射。以下属性指定页。64位物理地址,页面大小,缓存模式,以及内存权限。
如果指定的页是静态映射的,vaddr返回该页的虚拟地址。如果该页没有被静态映射(或者不存在指定的页),vaddr返回-1作为虚拟地址值。
QuRT内存映射是在系统配置文件中定义的。
相关数据类型
qurt_addr_t
qurt_paddr_64_t
qurt_mem_cache_mode_t
qurt_perm_t
参数
返回值
QURT_EOK - 指定的页面是静态映射的;在vaddr中返回一个虚拟地址。QURT_EMEM - 指定的页面没有被静态映射;vaddr中返回-1。QURT_EVAL - 指定的页面不存在。
依赖项
None.
21.17 qurt_mem_pool_add_pages()
21.17.1 功能文档
21.17.1.1 int qurt_mem_pool_add_pages ( qurt_mem_pool_t pool, unsigned first_pageno, unsigned size_in_pages )
将一个物理地址范围添加到指定的内存池对象。注意:只有在有root权限的情况下才能调用这个操作(guest-OS模式)。
相关数据类型
qurt_mem_pool_t
参数
返回值
QURT_EOK - 页面成功添加。
依赖项
None.
21.18 qurt_mem_pool_attach()
21.18.1 功能文档
21.18.1.1 int qurt_mem_pool_attach ( char ∗ name, qurt_mem_pool_t ∗ pool )
初始化一个内存池对象,以附加到系统配置文件中预定义的内存池。
内存池对象将内存区域分配给不同Hexagon内存单元的物理内存。它们在内存区域创建操作中被指定(第21.42.1.1节)。
注意:QuRT预先定义了内存池对象qurt_mem_default_pool(第21节),用于在SMI内存中分配内存区域。只有在非标准内存单元(如TCM)中分配内存区域时,才需要进行池附加操作。
相关数据类型
qurt_mem_pool_t
参数
返回值
QURT_EOK - 附加操作成功。
依赖项
None.
21.19 qurt_mem_pool_attr_get()
21.19.1 功能文档
21.19.1.1 int qurt_mem_pool_attr_get ( qurt_mem_pool_t pool, qurt_mem_pool_attr- _t∗attr )
获取内存池属性。
基于内存池句柄检索内存池配置,并将配置值填充到属性结构中。
相关数据类型
qurt_mem_pool_t
qurt_mem_pool_attr_t
参数
返回值
0 - 成功。
QURT_EINVALID - 损坏的句柄;池的句柄是无效的。
依赖项
21.20 qurt_mem_pool_attr_get_addr()
21.20.1 功能文档
21.20.1.1 int static int qurt_mem_pool_attr_get_addr ( qurt_mem_pool_attr_t ∗ attr, int range_id, qurt_addr_t ∗ addr )
获取指定内存池范围的起始地址。
相关数据类型
qurt_mem_pool_attr_t
qurt_addr_t
参数
返回值
0 - 成功。
QURT_EINVALID - 范围是无效的。
依赖项
None.
21.21 qurt_mem_pool_is_available()
21.21.1 功能文档
21.21.1.1 int qurt_mem_pool_is_available ( qurt_mem_pool_t pool, int page_count, qurt_mem_mapping_t mapping_type )
检查page_count参数指示的页面数量是否可以从指定的池中分配。
相关数据类型
qurt_mem_pool_attr_t
qurt_mem_mapping_t
参数
返回值
0 - 成功。
QURT_EINVALID - Mapping_type无效。
QURT_EMEM - 无法从池中分配指定的页面。
依赖项
None.
边栏推荐
猜你喜欢

Huffman Tree (1) Basic Concept and C - language Implementation

Wechat applet development practice cloud music

Lambda 表达式原理分析学习(2022.06.23)

All the important spark summit features were released here last night (with ultra clear video attached)

Halcon知识:盘点一下计量对象【1】

Taihu Lake "China's healthy agricultural products · mobile phone live broadcast" enters Taihu Lake
![25: Chapter 3: developing pass service: 8: [registration / login] interface: receiving and verifying](/img/ff/727c4a20ff3816ec7221dced5a4770.png)
25: Chapter 3: developing pass service: 8: [registration / login] interface: receiving and verifying "mobile number and verification code" parameters; (it is important to know the application scenario

NLP 论文领读|文本生成模型退化怎么办?SimCTG 告诉你答案

大神詳解開源 BUFF 增益攻略丨直播

Lvalue reference and lvalue reference
随机推荐
Introduction to neural network (Part 1)
Meeting, onemeeting, OK!
25: Chapter 3: developing pass service: 8: [registration / login] interface: receiving and verifying "mobile number and verification code" parameters; (it is important to know the application scenario
杰理之关于长按开机检测抬起问题【篇】
PostgreSQL heap堆表 存储引擎实现原理
AVL balanced binary tree (I) - concept and C language implementation
数据库 OLAP、OLTP是什么?相同和不同?适用场景
Installation and use of securecrtportable
Based on the open source stream batch integrated data synchronization engine Chunjun data restore DDL parsing module actual combat sharing
北京大学ACM Problems 1006:Biorhythms
MySQL master-slave synchronization
What are database OLAP and OLTP? Same and different? Applicable scenarios
obsidian配合hugo的使用,让markdown本地编辑软件与在线化无缝衔接
Tensorflow2.4 implementation of repvgg
浅谈代码语言的魅力
树基本概念
Playwright - scroll bar operation
Scene 299
No "history of blood and tears" in home office | community essay solicitation
Go language identifier and package name specification