04 2014 档案
匿名union
摘要:#include enum node_type{ t_int,t_double};struct node{ enum node_type type; union{ int t_int; double t_double; };};int main(void){ struct node t; t.t... 阅读全文
posted @ 2014-04-15 10:34 linghuchong0605 阅读(798) 评论(0) 推荐(0)
VMware虚拟机修改BIOS启动项
摘要:vmware默认是硬盘启动,要进bios里面设置成开机的启动顺序,要将光盘设置成第一启动项。但vm的开机画面比笔记本的还要快很多,基本都在1s内的,想进入 bios里面也有难度。。 对于网上说的开vm系统然后点击窗口狂按f2,试了多次都没能够进入bios的了。 不过,还是有解决办法的。 首先关... 阅读全文
posted @ 2014-04-14 09:30 linghuchong0605 阅读(4143) 评论(0) 推荐(0)
linux dentry cache 转自:http://blog.csdn.net/denzilxu/article/details/9188003
摘要:Linux dentry cache学习每个dentry对象都属于下列几种状态之一:(1)未使用(unused)状态:该dentry对象的引用计数d_count的值为0,但其d_inode指针仍然指向相关的的索引节点。该目录项仍然包含有效的信息,只是当前没有人引用他。这种dentry对象在回收内存时... 阅读全文
posted @ 2014-04-13 16:17 linghuchong0605 阅读(789) 评论(0) 推荐(0)
vim_preview_window
摘要:*29.2* The preview windowWhen you edit code that contains a function call, you need to use the correctarguments. To know what values to pass you can look at how the function isdefined. The tags mechanism works very well for this. Preferably thedefinition is displayed in another window. For this the 阅读全文
posted @ 2014-04-11 23:20 linghuchong0605 阅读(601) 评论(0) 推荐(0)
RPC的应用(The lowest layer of RPC)
摘要:server端代码:#include #include #include void nuser(struct svc_req * rqstp, SVCXPRT * transp){ unsigned nusers; unsigned input; switch (rqstp->rq_proc) { case NULLPROC: if (!svc_sendreply(transp, xdr_void, 0)) { fprintf(stderr, "can't reply to RPC call\n"); exit(1); } return; case RUSER 阅读全文
posted @ 2014-04-09 17:30 linghuchong0605 阅读(391) 评论(0) 推荐(0)