-
一段进入保护模式的程序,那位大侠给看看那有问题?源程序------------------------------------------------------#defineCR0_PE1.text.code16.globl_start_start:jmpstart0nopmesg1:.ascii"Loading......"mesg2:.ascii"Ready........"##########kakuyou 时间:06-26 + 阅读全文
-
container_of宏函数体里面为什么可以有分号?#definecontainer_of(ptr,type,member)({\consttypeof(((type*)0)->member)*__mptr=(ptr);\(type*)((char*)__mptr-offsetof(type,member));})为什么这个函数里面为什么可以有分号?为什么重新定义一个新变量__mptr?neubuffalo 时间:09-28 + 阅读全文
-
kernel-headers和kernel-source一样吗?安装软件时,需要kernel-headers,而我的机子里只有kernel-source,请问他们一样吗?Winux~~~ 时间:06-29 + 阅读全文
-
新手求教 linux kernel header file 问题我的按照书本上的交代写了一个linuxmodule#defineMODULE#include<linux/module.h>/*为了突出主题简单的hellowold程序就不写了*/gcc-ctest.c-I/usr/src/kernel/xxx.kernel.version/include/其中xxx.kernel.version为本人安装kernwansheg 时间:10-06 + 阅读全文