?? panic.c
字號:
/** linux/kernel/panic.c** (C) 1991 Linus Torvalds*//** This function is used through-out the kernel (includeinh mm and fs)* to indicate a major problem.*//** 該函數在整個內核中使用(包括在 頭文件*.h, 內存管理程序mm 和文件系統fs 中),* 用以指出主要的出錯問題。*/#include <linux/kernel.h> // 內核頭文件。含有一些內核常用函數的原形定義。#include <linux/sched.h> // 調度程序頭文件,定義了任務結構task_struct、初始任務0 的數據,// 還有一些有關描述符參數設置和獲取的嵌入式匯編函數宏語句。void sys_sync (void); /* it's really int *//* 實際上是整型int (fs/buffer.c,44) */// 該函數用來顯示內核中出現的重大錯誤信息,并運行文件系統同步函數,然后進入死循環 -- 死機。// 如果當前進程是任務0 的話,還說明是交換任務出錯,并且還沒有運行文件系統同步函數。volatile voidpanic (const char *s){ printk ("Kernel panic: %s\n\r", s); if (current == task[0]) printk ("In swapper task - not syncing\n\r"); else sys_sync (); for (;;);}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -