RT-Thread / RT-Thread/rt-thread

RT-Thread Cache 处理优化

Open
#6,965 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
12.2k
Forks
5.4k
Avg merge
4d 12h
Merged PRs (30d)
40

Description

驱动目前对于 Cache 处理是耦合在驱动代码里的。是不是将来抽象出来一层,独立管理 DMA 与驱动 有关的 Buffer
f635873e9f31c53f2bfb8ce5f3e56699_

方案一

驱动对应用传进来的buf,做一次拷贝,拷贝到满足要求的内存空间再进行DMA操作。
image

方案二

扩充 control 接口,应用直接向驱动申请满足要求的驱动
image

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by locating the drivers' current Cache and DMA buffer handling, then inspect the existing control interface and the two proposed designs in this issue. Done requires an agreed abstraction that separates DMA buffer management from drivers and a validated implementation path.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot, operating-systems
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.