mirror of
https://github.com/gatieme/LDD-LinuxDeviceDrivers.git
synced 2026-11-08 02:37:38 +08:00
完善了thread_info的学习...
This commit is contained in:
1 parent
d762646cd9
commit
8f134efb0c
34 files changed
+1483
-2
No files matched your search
@@ -4,3 +4,25 @@ Linux设备驱动程序学习笔记
|
||||
|
||||
#宋宝华-Linux设备驱动开发详解
|
||||
http://21cnbao.blog.51cto.com/
|
||||
|
||||
|
||||
#冯国进-Linux驱动程序开发实例(机械工业出版社)
|
||||
http://book.51cto.com/art/201205/337658.htm
|
||||
|
||||
#ARM嵌入式Linux设备驱动实例开发
|
||||
http://download.csdn.net/detail/melonbo/5048654
|
||||
|
||||
#嵌入式Linux设备驱动开发详解-光盘代码
|
||||
http://download.csdn.net/detail/mailyu/3818453
|
||||
|
||||
#华清远见嵌入式linux设备驱动开发详解(内部资料)
|
||||
http://download.csdn.net/detail/HUGH0001/2054035
|
||||
|
||||
|
||||
#嵌入式linux设备驱动开发详解2.4内核.pdf
|
||||
http://download.csdn.net/detail/kyl282889543/3217595
|
||||
|
||||
|
||||
Linux设备驱动开发详解:基于最新的Linux4.0内核
|
||||
Linux驱动开发入门与实战
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
cmd_/home/gatieme/Work/GitHub/LDD-LinuxDeviceDrivers/21cnbao/code/06/globalmem驱动/globalmem.ko := ld -r -m elf_x86_64 -T ./scripts/module-common.lds --build-id -o /home/gatieme/Work/GitHub/LDD-LinuxDeviceDrivers/21cnbao/code/06/globalmem驱动/globalmem.ko /home/gatieme/Work/GitHub/LDD-LinuxDeviceDrivers/21cnbao/code/06/globalmem驱动/globalmem.o /home/gatieme/Work/GitHub/LDD-LinuxDeviceDrivers/21cnbao/code/06/globalmem驱动/globalmem.mod.o
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,2 @@
|
||||
/home/gatieme/Work/GitHub/LDD-LinuxDeviceDrivers/21cnbao/code/06/globalmem驱动/globalmem.ko
|
||||
/home/gatieme/Work/GitHub/LDD-LinuxDeviceDrivers/21cnbao/code/06/globalmem驱动/globalmem.o
|
||||
File renamed without changes.
@@ -0,0 +1,43 @@
|
||||
#include <linux/module.h>
|
||||
#include <linux/vermagic.h>
|
||||
#include <linux/compiler.h>
|
||||
|
||||
MODULE_INFO(vermagic, VERMAGIC_STRING);
|
||||
|
||||
__visible struct module __this_module
|
||||
__attribute__((section(".gnu.linkonce.this_module"))) = {
|
||||
.name = KBUILD_MODNAME,
|
||||
.init = init_module,
|
||||
#ifdef CONFIG_MODULE_UNLOAD
|
||||
.exit = cleanup_module,
|
||||
#endif
|
||||
.arch = MODULE_ARCH_INIT,
|
||||
};
|
||||
|
||||
static const struct modversion_info ____versions[]
|
||||
__used
|
||||
__attribute__((section("__versions"))) = {
|
||||
{ 0xcd71858e, __VMLINUX_SYMBOL_STR(module_layout) },
|
||||
{ 0xedf578ce, __VMLINUX_SYMBOL_STR(param_ops_int) },
|
||||
{ 0x37a0cba, __VMLINUX_SYMBOL_STR(kfree) },
|
||||
{ 0x26520044, __VMLINUX_SYMBOL_STR(cdev_del) },
|
||||
{ 0x7485e15e, __VMLINUX_SYMBOL_STR(unregister_chrdev_region) },
|
||||
{ 0x29537c9e, __VMLINUX_SYMBOL_STR(alloc_chrdev_region) },
|
||||
{ 0x307aee44, __VMLINUX_SYMBOL_STR(cdev_add) },
|
||||
{ 0xb01e0219, __VMLINUX_SYMBOL_STR(cdev_init) },
|
||||
{ 0xab7d6a08, __VMLINUX_SYMBOL_STR(kmem_cache_alloc_trace) },
|
||||
{ 0xf1669456, __VMLINUX_SYMBOL_STR(kmalloc_caches) },
|
||||
{ 0xd8e484f0, __VMLINUX_SYMBOL_STR(register_chrdev_region) },
|
||||
{ 0x4f8b5ddb, __VMLINUX_SYMBOL_STR(_copy_to_user) },
|
||||
{ 0x4f6b400b, __VMLINUX_SYMBOL_STR(_copy_from_user) },
|
||||
{ 0x27e1a049, __VMLINUX_SYMBOL_STR(printk) },
|
||||
{ 0xbdfb6dbb, __VMLINUX_SYMBOL_STR(__fentry__) },
|
||||
};
|
||||
|
||||
static const char __module_depends[]
|
||||
__used
|
||||
__attribute__((section(".modinfo"))) =
|
||||
"depends=";
|
||||
|
||||
|
||||
MODULE_INFO(srcversion, "E93B9C6AF61707C5EFBA4EE");
|
||||
@@ -0,0 +1 @@
|
||||
kernel//home/gatieme/Work/GitHub/LDD-LinuxDeviceDrivers/21cnbao/code/06/globalmem驱动/globalmem.ko
|
||||
File renamed without changes.
File renamed without changes.
@@ -15,9 +15,9 @@ static int __init init_cr3_pgd(void)
|
||||
unsigned long pgd = 0;
|
||||
|
||||
cr3 = read_cr3();
|
||||
printk("cr3----------------->0x%lx\n",cr3);
|
||||
printk("cr3----------------->0x%lx\n", cr3);
|
||||
pgd = __pa(read_pgd());
|
||||
printk("pgd----------------->0x%lx\n",pgd);
|
||||
printk("pgd----------------->0x%lx\n", pgd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Whitespace-only changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user