原创 Linux 中節點(inode)、設備(cdev)、驅動(ops)如何關聯

inode與cdev結構體對比(片選) struct inode { uid_t i_uid; gid_t i_gid; dev_t i_rdev; // 設備文件的設備號

原创 字符設備幾種註冊方式的區別

數據結構 #define CHRDEV_MAJOR_HASH_SIZE 255 static struct char_device_struct { struct char_device_struct *next; unsi

原创 u-boot Makefile中兩個all的作用

# Include autoconf.mk before config.mk so that the config options are available # to all top level build files. We

原创 Proc使用seq_file時,參數如何傳遞

文章目錄測試代碼代碼分析variable是全局變量,如何在proc操作間傳遞?創建節點 proc_create_dataopen階段file 與 seq_filePDE_DATA(inode)是什麼show/write 階段,總結

原创 Rockchip DRM主驅動流程梳理

DRM主驅動流程梳理 kernel 配置與編譯 留在草稿箱很久了,就直接發了。 過去的事,很可惜。 make rockchip_defconfig make rk3399-sapphire-excavator-edp.img DTS

原创 Ubuntu server 14.04 雙網卡上網設置

目的:實現Ubuntu server 14.04 上兩個以太網卡的正常使用:em1: 192.168.84.100 192.168.84.0/24網段的連接(局域網,無法上網)em2: 192.168.199.130 192.168.19

原创 EGL 1.4 API 中文(部分)

寫作背景 寫這篇學習筆記,出於三個目的: 1. 學習Makrdowm; 2. 瞭解EGL基本API; 3. 學習英語和熟練翻譯; 因爲是對EGL大致有個瞭解,所以一下部分進對關鍵API參考官方文檔進行了翻譯

原创 git rm 結合 .gitignore 完成文件忽略

貼圖蛋疼,直接分享雲筆記鏈接: http://note.youdao.com/noteshare?id=e6c420074f3ed728b2d6bdf568c9e00b 一、生效條件: 1)、未跟蹤的對象: 新建.gitigno