RT-Thread / RT-Thread/rt-thread
RT-Thread Cache 处理优化
Open
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

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

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


Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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