LDD介紹的內容 - Linux

By Poppy
at 2014-02-04T16:13
at 2014-02-04T16:13
Table of Contents
他說大部分的驅動程式都會用到三個重要資料結構
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 的形式嗎?
--
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 的形式嗎?
--
Tags:
Linux
All Comments
Related Posts
Linus:「NVIDIA, Fu*k You!」

By Hamiltion
at 2014-02-03T22:43
at 2014-02-03T22:43
請問有關tree指令顯示中文問題

By Yedda
at 2014-02-03T22:41
at 2014-02-03T22:41
安裝軟體的路徑錯誤

By Ursula
at 2014-02-03T09:58
at 2014-02-03T09:58
VLC播放ISO檔出現dvdnav錯誤

By Frederica
at 2014-02-02T23:46
at 2014-02-02T23:46
請問技嘉的BRIX迷你主機可以灌UBUNTU嗎?

By Hazel
at 2014-02-01T01:17
at 2014-02-01T01:17