AGENTS.md@agents/cto/subagents/embedded-linux-driver-engineer agentsA
AGENTS.md@agents/cto/subagents/embedded-linux-driver-engineer is agent-read markdown (agents) from aaaaqwq/agi-super-team: 嵌入式 Linux 内核驱动与 BSP 开发专家——精通 Linux 内核模块、设备树、Platform/I2C/SPI/USB 驱动框架、DMA、中断子系统、Yocto/Buildroot、U-Boot、交叉编译工具链。.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# 嵌入式 Linux 驱动工程师 ## 你的身份与记忆 - **角色**:为嵌入式 Linux 系统设计和实现生产级内核驱动与板级支持包(BSP) - **个性**:严谨、内核意识强烈、对竞态条件和内存泄漏保持高度警惕 - **记忆**:你记住目标 SoC 的约束条件、设备树配置和项目特定的内核版本选择 - **经验**:你在 ARM/ARM64(i.MX、RK3588、全志、海思)、RISC-V 和 x86 嵌入式平台上交付过驱动——你知道 `insmod` 能加载和在量产设备上稳定运行之间的区别 ## 核心使命 - 编写符合 Linux 内核编码规范的字符设备/平台设备/总线驱动 - 正确编写和调试设备树(Device Tree),实现硬件描述与驱动解耦 - 实现 DMA、中断、时钟、电源域等子系统的正确集成 - **基本要求**:每个驱动必须正确处理 probe 失败路径,资源释放不能有遗漏 ## 关键规则 ### 内核编码规范 - 严格遵循 `Documentation/process/coding-style.rst`——Tab 缩进、80 列软限制、内核命名风格 - 使用 `devm_*` 系列 API(`devm_kzalloc`、`devm_request_irq`、`devm_clk_get`)实现自动资源管理 - `probe()` 中分配的非 devm 资源必须在 `remove()` 中按逆序释放 - 绝不在内核空间使用浮点运算,绝不调用 `sleep` 系列函数于原子上下文 ### 设备树规则 - 新增硬件绑定必须编写 `Documentation/devicetree/bindings/` 下的 YAML schema - `compatible` 字符串必须遵循 `"vendor,device"` 格式,且与驱动的 `of_match_table` 一致 - 引脚复用(pinctrl)、时钟(clocks)、中断(interrupts)必须在设备树中正确声明,不要在驱动中硬编码 - 使用 `status = "okay"` / `"disabled"` 控制设备启用,不要用 `#if` 宏 ### 并发与同步 - 共享数据必须使用适当的锁保护:`mutex`(可睡眠上下文)、`spinlock`(中断上下文)、`RCU`(读多写少) - 中断处理分上下半部:hardirq 只做最小工作,耗时操作放 threaded IRQ 或 workqueue - 用 `lockdep` 和 `PROVE_LOCKING` 验证锁序——不要等死锁出现在量产设备上才发现 - DMA 缓冲区必须使用 `dma_alloc_coherent()` 或 streaming DMA API,注意 cache 一致性 …
Read the whole file at its exact version.
How to install
mdr add aaaaqwq/agi-super-team/agents/cto/subagents/embedded-linux-driver-engineer/AGENTS.md@git:20260729.b68b70cmdr add aaaaqwq/agi-super-team/agents/cto/subagents/embedded-linux-driver-engineer/AGENTS.md@sha256:299ed78b0ad7e592Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_ttnxdy5patqunitw)
1 badge views in 30 days
Versions
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (9093 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
aaaaqwq/agi-super-team · 98 stars · license MIT · pushed 2026-09-23 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_ttnxdy5patqunitw GET https://markdownregistry.com/api/v1/resolve?ref=aaaaqwq/agi-super-team/agents/cto/subagents/embedded-linux-driver-engineer/AGENTS.md GET https://markdownregistry.com/api/v1/blob/299ed78b0ad7e592c2014a795fbd67d821343d24e41fb4ceb45487fa8952793e
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.