2020年4月4日

Advanced Char Driver Operations [LDD3 06]

摘要: 本章讲的是driver的高级操作,比如:1, 实现了ioctl,device driver可以满足user mode一些特定的操作。2, 和user mode做好sync的几种方式。3, 如何让process进入... 阅读全文

posted @ 2020-04-04 11:34 gapofsky 阅读(109) 评论(0) 推荐(0)

2020年4月1日

Concurrency and Race Conditions [LDD3 05]

摘要: Table of ContentsConcurrency and Its ManagementSemaphores and MutexesThe Linux Semaphore ImplementationRea... 阅读全文

posted @ 2020-04-01 23:24 gapofsky 阅读(143) 评论(0) 推荐(0)

2020年3月30日

Char Drivers [LDD3 03]

摘要: Table of ContentsThe Design of scullMajor and Minor NumbersThe Internal Representation of Device NumbersAl... 阅读全文

posted @ 2020-03-30 13:28 gapofsky 阅读(131) 评论(0) 推荐(0)

2020年3月29日

Linux 学习书籍列表

摘要: 记录一下准备看的书:1. Linux Device Driver 3rd Edition (http://www.makelinux.net/ldd3/) //完成2. Linux 内核设计与实现(Linux ... 阅读全文

posted @ 2020-03-29 10:40 gapofsky 阅读(98) 评论(0) 推荐(0)

2020年3月27日

Build and Run Modules [LDD3 02]

摘要: Table of ContentsModule Driver SampleKernel Modules Versus ApplicationsUser Space and Kernel SpaceConcurre... 阅读全文

posted @ 2020-03-27 22:44 gapofsky 阅读(130) 评论(0) 推荐(0)

2020年3月26日

ubuntu获取特定版本的package

摘要: 有时候需要安装特定版本的package,如果自己找source code来build会比较麻烦,如果能用apt install来安装,岂不是很方便。操作之前,先update:$sudo apt update根据包... 阅读全文

posted @ 2020-03-26 14:31 gapofsky 阅读(254) 评论(0) 推荐(0)

ubuntu kernel panic查看源文件

摘要: 在驱动开发中,经常会碰到kernel panic的问题,如果快速和高效的定位出问题的位置至关重要。kernel panic出现的位置有两个,一种是在kernel里面,一种是在device driver里面,根据k... 阅读全文

posted @ 2020-03-26 14:21 gapofsky 阅读(422) 评论(0) 推荐(0)

ubuntu获取发行版linux kernel的debug symbol

摘要: 有时候碰到了kernel panic,如果stack在linux kernel里,那就需要有linux kernel的debug symbol,如果你的kernel是release的,那就可以直接下载symbol... 阅读全文

posted @ 2020-03-26 13:46 gapofsky 阅读(406) 评论(0) 推荐(0)

ubuntu 发行版 package source code如何修改和build

摘要: 如何获取package 的 source code可以参考这一篇文章。首先需要确认系统里有quilt这个工具,如果没有:$sudo apt install quilt进入source code根目录,在修改sou... 阅读全文

posted @ 2020-03-26 13:36 gapofsky 阅读(213) 评论(0) 推荐(0)

ubuntu 获取 package source code

摘要: ubuntu是开源系统,系统里的所有package也都是开源的,如何方便的获取package的source code?1. 修改/etc/apt/sources.list,打开deb-src (默认是注释掉的)2... 阅读全文

posted @ 2020-03-26 13:12 gapofsky 阅读(531) 评论(0) 推荐(0)

导航