从Linux内核的2.6某个版本开始,内核引入了导出符号的机制。只有在内核中使用EXPORT_SYMBOL或EXPORT_SYMBOL_GPL导出的符号才能在内核模块中直接使用。然而,内核并没有导出所有的符号。例如,在3.8.0的内核中,do_page_fault就没有被导出。 而我的内核模块中需....
分类:
系统相关 时间:
2014-06-28 10:35:46
阅读次数:
280
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:
其他好文 时间:
2014-06-25 23:36:53
阅读次数:
291
1.欧拉筛法在线性时间内求素数以及欧拉函数代码: 1 procedure get; 2 var i,j,k:longint; 3 begin 4 tot:=0; 5 fillchar(check,sizeof(check),false); 6 for i:=2 to n do 7 be...
分类:
其他好文 时间:
2014-06-25 22:11:51
阅读次数:
574
When using rsync to backup and synchronize configuration files, do remember to close all LibreOffice sessions including the Quick Starter.However, eve...
分类:
其他好文 时间:
2014-06-25 21:51:54
阅读次数:
312
[ Talk is Cheap Show me the CODE ] : jQuery Mobile工具栏
Written In The Font
“ Wirte less Do more”
学习内容:
页眉工具栏和页眉按钮导航工具栏页脚工具栏定位工具栏
页眉工具栏和页眉按钮
页眉是网页身体的头不一样.下面我们演示下在页面工具栏中添加两个连接,中间...
分类:
Web程序 时间:
2014-06-25 20:07:02
阅读次数:
280
Given a singly linked list L: L0→L1→…→Ln-1→Ln,
reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…
You must do this in-place without altering the nodes' values.
For example,
Given {1,2,3,4}, reorder it t...
分类:
其他好文 时间:
2014-06-24 21:55:30
阅读次数:
279
做了一下午,总算做出来了!!
思路:将R转换成整数,同时计算好小数的个数,计算整数的次幂之后,然后根据规律将小数点适当的时候输出(如有3位实际小数,则应在第36位输出小数点)
链接http://acm.nyist.net/JudgeOnline/problem.php?pid=155
代码:
#include
#include
int main()
{
int i, j, n, do...
分类:
其他好文 时间:
2014-06-24 21:01:10
阅读次数:
164
The world is beautiful. Even if you’re full of tears and sadness, open your eyes. Do what you want to do. Be what you want to be. Find friends. Don’t....
分类:
其他好文 时间:
2014-06-24 14:47:06
阅读次数:
295
#!/bin/bash#使用前请先创建一个路径文件夹/tmp/weblog#确定当前时间,即脚本执行日的0时time=`date "+%y%m%d:%H"`#定位日志时间格式为:20140624:00date1="20$time"#开启死循环,每小时筛选一次日志,并输出while :;do#获取当前...
分类:
其他好文 时间:
2014-06-24 12:03:56
阅读次数:
251
1.忽略额外的换行符do{c=getchar();}while(c==‘\n’);用处:Linux会暂存用户输入的内容,知道用户按下回车键,然后将用户输入字符及紧随其后的回车符一起传给程序,所以\n也会被getchar()获取,造成程序产生不想见的输出。忽略的原理即当c通过getchar函数获得一个...
分类:
系统相关 时间:
2014-06-22 09:36:18
阅读次数:
216