查找idt table 所對應的page table in Linux

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/jump_label.h>
#include <linux/types.h>
#include <asm/pgtable.h>
#include <asm/pgtable_64.h>
#include <asm/tlbflush.h>
#include <asm/current.h>
#include <linux/fs.h>
#include <asm/fixmap.h>
#include <asm/desc_defs.h>
MODULE_LICENSE("GPL");
struct desc_ptr idt;
int init_module(void)
{
        asm volatile ("sidt %0" : "=m" (idt));
        unsigned int level;
        pte_t *pte;
        pte = lookup_address( idt.address, &level);
        printk("level:%d\n", level);
        printk("pte_val(*pte):%lx\n", pte_val(*pte));
        printk("pte_val(*pte)& _PAGE_PRESENT:%d\n", pte_val(*pte)& _PAGE_PRESENT);
        return 0;
}
void cleanup_module(void)
{
        printk("clean_module : fixmap\n");
}

  

查找idt table 所對應的page table in Linux

时间: 2024-08-25 17:07:05

查找idt table 所對應的page table in Linux的相关文章

数据库问题6-將系統資料表對應至系統檢視

(转帖)http://technet.microsoft.com/zh-tw/library/ms187997.aspx 將系統資料表對應至系統檢視 (Transact-SQL) 這個主題顯示系統資料表和函數與系統檢視和函數之間的對應. 下表將 SQL Server 2000 中 master 資料庫的系統資料表對應到 SQL Server 2008 中對應的系統檢視或函數. 系統資料表 系統檢視或函數 檢視或函數的類型 sysaltfiles sys.master_files 目錄檢視 sys

Marlin 溫度感應器 數值轉換對應表

Marlin 溫度感應器 數值轉換對應表 (2014/03/27)Update: 自己實測了這個自動產生的對應表,結果測得的溫度與實際值仍有相當大的誤差.看來還是要回頭用測量的方式來校正溫度... 3D印表機內使用的溫度感應器,大多使用負溫度係數熱敏電阻(NTC).溫度越高,阻值越小. 電阻值隨溫度變化的公式如下: R(t) = R0 * Exp(B*((1/t) - (1/t0))) 其中R0是指溫度在t0時的電阻值.t0是標準參考溫度,一般規格書會以攝氏25度為參考溫度. 公式中溫度相關的參

Virtual Memory PAGE TABLE STRUCTURE

COMPUTER ORGANIZATION AND ARCHITECTURE DESIGNING FOR PERFORMANCE NINTH EDITION The basic mechanism for reading a word from memory involves the translation of a virtual, or logical, address, consisting of page number and offset, into a physical addres

Kernel Page Global Directory (PGD) of Page table of Process created in Linux Kernel

Kernel Page Global Directory (PGD) of User process created 在早期版本: 在fork一个进程的时候,必须建立进程自己的内核页目录项(内核页目录项要与用户空间的页目录放在同一个物理地址连续的页面上,所以不能共享,但所有进程的内核页表与进程0共享)3G用户,页目录中一项映射4M的空间(一项页目录1024项页表,每项页表对应1个页面4K),即:#define PGDIR_SHIFT 22#define PGDIR_SIZE (1UL << P

linux page table entry struct

Page Table Entry The access control information is held in the PTE and is CPU specific; figure bit fields have the following meanings: V Valid, if set this PTE is valid,       页表是否可用 FOE ``Fault on Execute'', Whenever an access of this type occurs, t

thinkphp中SQLSTATE[42S02]: Base table or view not found: 1146 Table错误解决方法

随手记录下今天在thinkphp3.2.3中遇到的错误SQLSTATE[42S02]: Base table or view not found: 1146 Table 'test.file_info' doesn't exist,之前用pdo连接数据库一直没有问题,今天突然发现报了上述错误,查看了别人的解决方法,都没有解决,后来看了下之前的表名都是小写的,我现在的表名是"file_Info",改为"file_info"后就不报异常了

table与tr td样式重叠 table样式边框变细

<table style="border:1px solid red;border-collapse:collapse;"> border-style 的属性 值 描述 none 定义无边框. hidden 与 "none" 相同.不过应用于表时除外,对于表,hidden 用于解决边框冲突. dotted 定义点状边框.在大多数浏览器中呈现为实线. dashed 定义虚线.在大多数浏览器中呈现为实线. solid 定义实线. double 定义双线.双线

create table #temptable 临时表 和 declare @bianliang table ()表变量

create table #temptable 临时表 和 declare @bianliang table ()表变量 在开发过程中,经常会遇到使用表变量和本地临时表的情况.下面是对二者的一个介绍: 1. 为什么要使用表变量 表变量是从2000开始引入的,微软认为与本地临时表相比,表变量具有如下优点:  a.与其他变量的定义一样,表变量具有良好的定义范围,并会被自动清除:  b.在存储过程中使用表变量会减少存储过程重新编译的发生:  c.表变量需要更少的锁请求和日志资源:  d.可以在表变量上

table新增一行并循环获取table内值

简单介绍 table新增一行,并获取table标签中所有td的值,通过js将其组装成json格式传给后端存储数据库. 实际操作 1.首先需要在页面html创建talbe标签内容,定义th标题 2.给包含td的tr增加一个属性,例如:type="subdata" 3.在table标签下增加一个按钮,并给其增加一个click事件 html内容 4.在js文件中进行click事件内容的编写,按照th标题数量进行td的拼接,也增加了一个删除行功能 js内容 5.js使用each来进行table