看板
[ Linux ]
討論串[問題] 請問有關撰寫/proc時所用的proc_read函式
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
根據trace到原始的source code部分 proc/fs/generic.c. 作者寫到的使用說明:. /*. * How to be a proc read function. * ------------------------------. * Prototype:. * int f(
(還有2005個字)
內容預覽:
我使用kernel-2.6.17,撰寫kernel modules來記錄一些系統資訊,. 使用與user space溝通的機制是/proc,在開完檔案之後指定read function大致如下:. int procfile_read(char *buffer, char **buffer_locat
(還有321個字)
首頁
上一頁
1
下一頁
尾頁