linux
hellworl
hellworl@163.com
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
内存对齐问题
struct align{int *ip1;char chint *ip2}在32位机器中:sizeof(align)=12 为什么会这么做?cpu限制,加快访问速度原创 2011-11-23 20:35:43 · 409 阅读 · 0 评论 -
linux proc下创建文件
void create_proc(void){ struct proc_dir_entry *entry; entry= create_proc_entry("proc_f",0,NULL); entry->read_proc=f_read_proc; entry->write_proc=f_write_proc;}stati原创 2011-11-23 20:39:26 · 1594 阅读 · 0 评论 -
linux 计时器 timer
定义: struct timer_list timer;初始化:init_timer(&timer);timer.function =timer_fun;每次使用需要重新设置超时,并调用add_timer函数,以启动定时器:timer.expires=jiffies+HZ;add_timer(&timer);删除定时器:del_timer(&timer);原创 2011-11-23 20:42:06 · 622 阅读 · 0 评论 -
Git 学习笔记
1、切换分支前保存当前工作,切换回原来的分支再恢复原来的工作环境 git stash git checkout new_branch do something..... git checkout orignal_branch git stash pop2、别名 git config --global alias.st原创 2012-01-11 09:13:15 · 696 阅读 · 0 评论
分享