在写内核驱动的时候,用到了ioctl。自己定义cmd作为ioctl的参数。如下:enum CMD { LEVEL_DOWN, LEVEL_UP, GPIO_INPUT, GPIO_OUTPUT, GPIO_GET,};ioctl底层调用代码:static long le...
分类:
其他好文 时间:
2015-11-07 17:17:49
阅读次数:
997
[root@localhost ~]# perf record -e cpu-clock ./t1 [ perf record: Woken up 1 times to write data ][ perf record: Captured and wrote 0.003 MB perf.data ...
分类:
其他好文 时间:
2015-11-06 22:31:20
阅读次数:
281
Warm upTime Limit:5000MSMemory Limit:65535KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 4612Description N plan...
分类:
其他好文 时间:
2015-11-06 21:00:49
阅读次数:
353
一、SVN 中 clean up 的功能 当Subversion改变你的工作拷贝(或是.svn中的任何信息),它会尽可能的小心,在修改任何事情之前,它把意图写到日志文件中去,然后执行log文件中的命令,并且执行过程中在工作拷贝的相关部分保存一个锁,防止Subversion客户端在变更过程中访问工作....
分类:
其他好文 时间:
2015-11-06 19:34:22
阅读次数:
170
在出错文件夹下,鼠标右键TortoiseSVN->Clean up.SVN错误:Attempted to lock an already-locked dir1、出现这个问题后使用“清理”功能,如果还不行,就直接到上一级目录,再执行“清理”,然后再“更新”。2、有时候如果看到某个包里面的文件夹没有S...
分类:
其他好文 时间:
2015-11-06 17:57:11
阅读次数:
151
以下两条语句是否可以合并成一条:update t9 set id=1 where b>'2015-10-12'; update t9 set id=1, e='2015-01-01' where b='2015-10-12'; 既然来写博客了,那答案肯定是可以的,如下写法可以就上面的两条up...
分类:
数据库 时间:
2015-11-06 16:03:38
阅读次数:
404
up vote20down voteacceptedYou can specify a username usingsvn co --username your_name https://svn.server.com/repository/trunkand the password should b...
分类:
Web程序 时间:
2015-11-06 10:53:16
阅读次数:
155
I cleaned up the code a bit and I added some new features I got rid of a ton of bugs still crawling around .New features include:Up and down arrow hot...
分类:
其他好文 时间:
2015-11-05 23:48:06
阅读次数:
462
1 Two Sum Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of...
分类:
其他好文 时间:
2015-11-05 22:15:12
阅读次数:
254
新建的maven项目,项目内代码及pom.xml没有任何问题,但项目上就是有红叉,这时点开Markers(Window-->show veiw-->Markers),查看错误的详细信息,信息上:Project configuration is not up-to-date with pom.xm...
分类:
系统相关 时间:
2015-11-05 12:11:33
阅读次数:
187