[問題] LDD介紹的內容

看板Linux作者 (非常念舊)時間12年前 (2014/02/04 16:13), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
他說大部分的驅動程式都會用到三個重要資料結構 struct file_operations struct file struct inode 然後,在稍後的章節3.4 "註冊字元裝置" 介紹 struct cdev,代表字元裝置,這我就跟 struct file 搞混了,因為 struct cdev 裡面的欄位好像跟 sstruct file 一樣有 ops 指標指向 struct file_operations 請問這裡介紹的 struct cdev 就是 struct file 的形式嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.136.158.126 ※ 編輯: gn00618777 來自: 220.136.158.126 (02/04 16:15)
文章代碼(AID): #1IyA4Jth (Linux)
文章代碼(AID): #1IyA4Jth (Linux)