chardev debuggings#3
Merged
Merged
Conversation
- guides/01: 补漏 CROSS_COMPILE 默认 ARM32 工具链 + build 假 SUCCESS 的大坑 - configs: mini config 加 KPROBES/KRETPROBES;关 DEBUG_ATOMIC_SLEEP/DYNAMIC_DEBUG(致外部模块 modpost 失败) - rootfs init: /dev 从 tmpfs 改 devtmpfs(否则 misc 设备节点不自动创建) - .gitignore: 补 example 编译产物 + /wait.md
example/mini 新增(arm64/6.19.9, QEMU ARM64 亲测过): - 01-chardev_basic: misc + fops + copy_*_user 边界检查(-EFBIG) - 02-ioctl: _IOWR/_IO 编码 + switch + compat_ptr_ioctl + 用户态程序 - 03-poll: poll_wait + wait_queue + 阻塞 read + O_NONBLOCK - 04-mmap: vm_insert_page 映射内核页,双向读写 - 05-irq: platform driver + 线程化 irq + workqueue(需设备树设备) - 06-dbgprintk: 八级 loglevel + pr_fmt(pr_debug 默认隐藏) - 07-oops: NULL deref oops(trigger 门控),完整现场 教程 drivers/01-04 + debugging/01,05 升 maturity verified,动手章节填真实输出 进度账本: drv-chardev/ioctl/poll/mmap + debug-printk/oops 六节点 completed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.