?? super.c
字號(hào):
/** linux/fs/super.c** (C) 1991 Linus Torvalds*//** super.c contains code to handle the super-block tables.*/#include <linux/config.h> // 內(nèi)核配置頭文件。定義鍵盤語言和硬盤類型(HD_TYPE)可選項(xiàng)。#include <linux/sched.h> // 調(diào)度程序頭文件,定義了任務(wù)結(jié)構(gòu)task_struct、初始任務(wù)0 的數(shù)據(jù),// 還有一些有關(guān)描述符參數(shù)設(shè)置和獲取的嵌入式匯編函數(shù)宏語句。#include <linux/kernel.h> // 內(nèi)核頭文件。含有一些內(nèi)核常用函數(shù)的原形定義。#include <asm/system.h> // 系統(tǒng)頭文件。定義了設(shè)置或修改描述符/中斷門等的嵌入式匯編宏。#include <errno.h> // 錯(cuò)誤號(hào)頭文件。包含系統(tǒng)中各種出錯(cuò)號(hào)。(Linus 從minix 中引進(jìn)的)。#include <sys/stat.h> // 文件狀態(tài)頭文件。含有文件或文件系統(tǒng)狀態(tài)結(jié)構(gòu)stat{}和常量。int sync_dev (int dev); // 對指定設(shè)備執(zhí)行高速緩沖與設(shè)備上數(shù)據(jù)的同步操作。(fs/buffer.c,59)void wait_for_keypress (void); // 等待擊鍵。(kernel/chr_drv/tty_io.c, 140)/* set_bit uses setb, as gas doesn't recognize setc *//* set_bit()使用了setb 指令,因?yàn)閰R編編譯器gas 不能識(shí)別指令setc *///// 測試指定位偏移處比特位的值(0 或1),并返回該比特位值。(應(yīng)該取名為test_bit()更妥帖)mount_root
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -