/* ptrace.c *//* By Ross Biro 1/23/92 *//* edited by Linus Torvalds */#include #include #include #include #include #include #include #include #include...
分类:
其他好文 时间:
2014-06-29 06:02:45
阅读次数:
235
今天在ubuntu中玩了下“拦截系统调用”,记录下自己对整个实现的理解。原理在linux kernel中,系统调用都放在一个叫做“sys_call_table”的分配表里面,在进入一个系统调用的最后一步,会调用与eax中包含的系统调用号对应的特定服务例程:[cpp]view plaincopycal...
分类:
其他好文 时间:
2014-06-28 22:30:33
阅读次数:
270
A monolithic kernel is a kernel where all services (file system, VFS, device drivers, etc) as well as core functionality (scheduling, memory allocatio...
分类:
其他好文 时间:
2014-06-18 12:45:23
阅读次数:
361
一、Ashmem驱动程序
~/Android/kernel/goldfish
----include
----linux
----ashmem.h
----mm
----ashmem.c
驱动程序详解请看《Android系统源代码情景分...
分类:
移动开发 时间:
2014-06-18 11:27:37
阅读次数:
306
1. 制表符8个空格2. 每行最长80字符3. 代码块的{放在首行,但是函数的{放在次行4. 只有一行的if块,不加{}5. 不在()前后加空格6. 正常关键字后加一个空格,if, switch, case, for, do, while7. 但是不要在sizeof、typeof、alignof或者...
分类:
其他好文 时间:
2014-06-18 10:33:56
阅读次数:
204
/** linux/kernel/printk.c** Copyright (C) 1991, 1992 Linus Torvalds** Modified to make sys_syslog() more flexible: added commands to* return the last ...
分类:
其他好文 时间:
2014-06-17 21:10:57
阅读次数:
275
/** linux/kernel/info.c** Copyright (C) 1992 Darren Senn*//* This implements the sysinfo() system call */#include #include #include #include #include ...
分类:
其他好文 时间:
2014-06-17 21:08:30
阅读次数:
251
一、Ashmem驱动程序
~/Android/kernel/goldfish
----include
----linux
----ashmem.h
----mm
----ashmem.c
驱动程序详解请看《A...
分类:
移动开发 时间:
2014-06-17 16:41:12
阅读次数:
801
自己VM虚拟机里安装redhat linux root密码忘了,刚开始想重新安装,但是后来想到还有linux有一个single模式,使用single可以直接进入字符界面,然后修改;启动vm虚拟机,启动linux系统;进入linux启动界面之后按e进入如下界面;按选择kernel /vmlinuz-2...
分类:
系统相关 时间:
2014-06-17 13:19:06
阅读次数:
533