从Linux内核的2.6某个版本开始,内核引入了导出符号的机制。只有在内核中使用EXPORT_SYMBOL或EXPORT_SYMBOL_GPL导出的符号才能在内核模块中直接使用。然而,内核并没有导出所有的符号。例如,在3.8.0的内核中,do_page_fault就没有被导出。 而我的内核模块中需....
分类:
系统相关 时间:
2014-06-28 10:35:46
阅读次数:
280
The famous Korean internet company nhn has provided an internet-based photo service which allows The famous Korean internet company users to directly ...
分类:
其他好文 时间:
2014-06-28 10:30:40
阅读次数:
304
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
Impact crusher is a new crushing equipment taking advantages of impact effect to crush materials, which has such features as big reduction ratio, high...
分类:
其他好文 时间:
2014-06-25 23:12:07
阅读次数:
258
FlatBuffers发布出来一周多,周末便抽时间先研究下它的使用方法。Flatbuffers的idl的语法主要参考[http://google.github.io/flatbuffers/md__schemas.html ]。本文主要介绍几个它的monster.fbs没有给出说明的几个语法点和相关的注意事项。
1 comment
它的注释中介绍了”///",说明是可以生成do...
分类:
其他好文 时间:
2014-06-22 11:32:32
阅读次数:
305
CollectionhasneithergenerictypeorOneToMany.targetEntity()defined在一对多双向关联关系里,Set如果用泛型,就需要在@OneToMany指明targetEntity多方的实体类,要不就不要用泛型。
分类:
Web程序 时间:
2014-06-22 10:09:21
阅读次数:
356
1.忽略额外的换行符do{c=getchar();}while(c==‘\n’);用处:Linux会暂存用户输入的内容,知道用户按下回车键,然后将用户输入字符及紧随其后的回车符一起传给程序,所以\n也会被getchar()获取,造成程序产生不想见的输出。忽略的原理即当c通过getchar函数获得一个...
分类:
系统相关 时间:
2014-06-22 09:36:18
阅读次数:
216
As we all know,a thread is a separate process on your computer.you can run multiple threads all at the same time.
multi-threaded code has the disadvantage of becoming quite complex very quickly,altho...
分类:
其他好文 时间:
2014-06-22 07:25:06
阅读次数:
244
from:unix高级环境编程
unix/linux中共享内存是最高效的ipc方式。
有几种使用方式:
1)mmap /dev/zero设备:
fd = open("/dev/zero", O_RDWR);
area = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
close(fd);
加入MAP_SHARE...
分类:
其他好文 时间:
2014-06-22 06:21:16
阅读次数:
215
????用hibernate访问sybase时遇见的异常。
Could not obtain connection metadata : ASE is now using a multi-byte character set, and the TEXT character counts have not been re-calculated using this character set ...
分类:
系统相关 时间:
2014-06-22 06:19:49
阅读次数:
1188