当前位置:网站首页>B_ QuRT_ User_ Guide(36)
B_ QuRT_ User_ Guide(36)
2022-07-07 23:26:00 【weixin_ thirty-eight million four hundred and ninety-eight thou】
B_QuRT_User_Guide(36)
- 22 System Environment
- 22.1 qurt_sysenv_get_app_heap()
- 22.2 qurt_sysenv_get_arch_version()
- 22.3 qurt_sysenv_get_hw_timer()
- 22.4 qurt_sysenv_get_max_hw_threads()
- 22.5 qurt_sysenv_get_max_pi_prio()
- 22.6 qurt_sysenv_get_process_name()
- 22.7 qurt_sysenv_get_stack_profile_count()
- 22.8 qurt_atomic64_xor_return()
- 22.9 Data Types
- 22.9.1 Data Structure Documentation
- 22.9.1.1 struct qurt_sysenv_swap_pools_t
- 22.9.1.2 struct qurt_sysenv_app_heap_t
- 22.9.1.3 struct qurt_arch_version_t
- 22.9.1.4 struct qurt_sysenv_max_hthreads_t
- 22.9.1.5 struct qurt_sysenv_hthreads_t
- 22.9.1.6 struct qurt_sysenv_max_pi_prio_t
- 22.9.1.7 struct qurt_sysenv_hw_timer_t
- 22.9.1.8 struct qurt_sysenv_procname_t
- 22.9.1.9 struct qurt_sysenv_stack_profile_count_t
- 22.9.1.10 struct qurt_sysevent_error_t
- 22.9.1.11 struct qurt_sysenv_swap_pools_t
22 System Environment
Programs can access QuRT Various properties of the system environment .
Maximum pimutex Priority specifies that a thread has priority inheritance mutex The lock on can be set to the highest priority . This value makes others unused pimutex Of threads can be higher than pimutex The highest priority thread priority runs .
The system environment supports the following operations .- qurt_sysenv_get_app_heap()
- qurt_sysenv_get_arch_version()
- qurt_sysenv_get_hw_timer()
- qurt_sysenv_get_max_hw_threads()
- qurt_sysenv_get_max_pi_prio()
- qurt_sysenv_get_process_name()
- qurt_sysenv_get_stack_profile_count()
- qurt_sysenv_get_hw_threads()
- Data Types
22.1 qurt_sysenv_get_app_heap()
22.1.1 Function document
22.1.1.1 int qurt_sysenv_get_app_heap ( qurt_sysenv_app_heap_t ∗ aheap )
Get the information of the program heap from the kernel .
Related data types
qurt_sysenv_app_heap_t
Parameters 
Return value
QURT_EOK – Success.
QURT_EVAL – Invalid parameter.
Dependencies
None.
22.2 qurt_sysenv_get_arch_version()
22.2.1 Function document
22.2.1.1 int qurt_sysenv_get_arch_version ( qurt_arch_version_t ∗ vers )
Get from kernel Hexagon Processor architecture version .
Parameters 
Return value
QURT_EOK – Success.
QURT_EVAL – Invalid parameter
Dependencies
None.
22.3 qurt_sysenv_get_hw_timer()
22.3.1 Function document
22.3.1.1 int qurt_sysenv_get_hw_timer ( qurt_sysenv_hw_timer_t ∗ timer )
Get the memory address of the hardware timer from the kernel .
Parameters 
Return value
QURT_EOK – Success.
QURT_EVAL – Invalid parameter.
Dependencies
None.
22.4 qurt_sysenv_get_max_hw_threads()
22.4.1 Function document
22.4.1.1 int qurt_sysenv_get_max_hw_threads ( qurt_sysenv_max_hthreads_t ∗ mhwt )
obtain Hexagon The maximum number of hardware threads supported in the processor .API Including disabled hardware threads , To reflect the maximum number of hardware threads . for example , If the image is configured with four hardware threads , And in cust_config.xml in hthread_mask Set to 0x5, only HW0 and HW2 By QuRT initialization .HW1 and HW3 Not used at all . under these circumstances ,qurt_sysenv_get_max_hw_threads() Still return four .
Related data types
qurt_sysenv_max_hthreads_t
Parameters 
Return value
QURT_EOK – Success.
QURT_EVAL – Invalid parameter.
Dependencies
None.
22.5 qurt_sysenv_get_max_pi_prio()
22.5.1 Function document
22.5.1.1 int qurt_sysenv_get_max_pi_prio ( qurt_sysenv_max_pi_prio_t ∗ mpip )
Get the inherited spoiler priority with the highest priority from the kernel .
Related data types
qurt_sysenv_max_pi_prio_t
Parameters 
Return value
Masked 64 Bit atomic variable AND result .
Dependencies
None.
22.6 qurt_sysenv_get_process_name()
27.6.1 Function document
22.6.1.1 int qurt_sysenv_get_process_name ( qurt_sysenv_procname_t ∗ pname )
Get the information of the system environment process name from the kernel .
Related data types
qurt_sysenv_procname_t
Parameters 
Return value
QURT_EOK – Success.
QURT_EVAL – Invalid parameter.
Dependencies
None.
22.7 qurt_sysenv_get_stack_profile_count()
22.7.1 Function document
22.7.1.1 int qurt_sysenv_get_stack_profile_count ( qurt_sysenv_stack_profile_count- _t∗count )
Get information about stack profile count from the kernel .
Related data types
qurt_sysenv_stack_profile_count_t
Parameters 
Return value
QURT_EOK – Success.
Dependencies
None.
22.8 qurt_atomic64_xor_return()
22.8.1 Function document
22.8.1.1 int qurt_sysenv_get_hw_threads ( qurt_sysenv_hthreads_t ∗ mhwt )
obtain QuRT stay Hexagon The number of hardware threads initialized in the processor . for example , If the image is configured with four hardware threads , And in cust_config.xml in hthread_mask Set to 0x5,QuRT Initialization only HW0 and HW2.HW1 and HW3 Not used . under these circumstances ,qurt_sysenv_get_hw_threads return 2.
Related data types
qurt_sysenv_hthreads_t
Parameters 
Return value
QURT_EOK – Success.
QURT_EVAL – Invalid parameter.
Dependencies
None.
22.9 Data Types
This section describes the data types of system environment services .
22.9.1 Data Structure Documentation
22.9.1.1 struct qurt_sysenv_swap_pools_t
QuRT Exchange pool information type .
22.9.1.2 struct qurt_sysenv_app_heap_t
QuRT Application heap information type .
22.9.1.3 struct qurt_arch_version_t
QuRT Schema version information type .
22.9.1.4 struct qurt_sysenv_max_hthreads_t
QuRT Maximum hardware thread information type .
22.9.1.5 struct qurt_sysenv_hthreads_t
QuRT Active hardware thread information type .
22.9.1.6 struct qurt_sysenv_max_pi_prio_t
QuRT Maximum pi Priority information type .
22.9.1.7 struct qurt_sysenv_hw_timer_t
22.9.1.8 struct qurt_sysenv_procname_t
QuRT Process name information type .
22.9.1.9 struct qurt_sysenv_stack_profile_count_t
QuRT Stack overview count information type .
22.9.1.10 struct qurt_sysevent_error_t
QuRT System error event type .

22.9.1.11 struct qurt_sysenv_swap_pools_t
QuRT Information type of page error event .
边栏推荐
- VS扩展工具笔记
- Bit operation
- LeeCode -- 6. Zigzag transformation
- Gee (IV): calculate the correlation between two variables (images) and draw a scatter diagram
- 移动端异构运算技术 - GPU OpenCL 编程(基础篇)
- 成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚
- [compilation principle] lexical analysis design and Implementation
- Experience sharing of system architecture designers in preparing for the exam: the direction of paper writing
- JMeter interface automated test read case, execute and write back result
- Unity3d learning notes 5 - create sub mesh
猜你喜欢

RE1 attack and defense world reverse

Wechat forum exchange applet system graduation design (5) assignment

Adults have only one main job, but they have to pay a price. I was persuaded to step back by personnel, and I cried all night

成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚

三问TDM

Installing spss25

Wechat forum exchange applet system graduation design completion (8) graduation design thesis template

First week of July

MySQL Index Optimization Practice II
![Ros2 topic (03): the difference between ros1 and ros2 [02]](/img/12/244ea30b5b141a0f47a54c08f4fe9f.png)
Ros2 topic (03): the difference between ros1 and ros2 [02]
随机推荐
Matlab SEIR infectious disease model prediction
Mysql索引优化实战一
欢聚时代一面
Count the top 10 films at the box office and save them in another file
Talk about the design and implementation logic of payment process
ArcGIS: two methods of attribute fusion of the same field of vector elements
Inftnews | web5 vs Web3: the future is a process, not a destination
Unity3d learning notes 4 - create mesh advanced interface
三问TDM
leetcode-520. Detect capital letters -js
Unity3D学习笔记6——GPU实例化(1)
Freelink open source call center design idea
Conversion between commonsmultipartfile and file
Dynamics 365 查找字段过滤
树后台数据存储(採用webmethod)[通俗易懂]
Archlinux install MySQL
高效的S2B2C电商系统,是这样帮助电子材料企业提升应变能力的
海内外技术人们“看”音视频技术的未来
MySQL Index Optimization Practice I
USB (XIV) 2022-04-12