Linux
bestman
“If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.” ~ George Bernard Shaw
展开
-
从 Linux 内核访问用户空间内存
Linux 内存在 Linux 中,用户内存和内核内存是独立的,在各自的地址空间实现。地址空间是虚拟的,就是说地址是从物理内存中抽象出来的(通过一个简短描述的过程)。由于地址空间是虚拟的,所以可以存在很多。事实上,内核本身驻留在一个地址空间中,每个进程驻留在自己的地址空间。这些地址空间由虚拟内存地址组成,允许一些带有独立地址空间的进程指向一个相对较小的物理地址空间(在机器的物理内存中)。不仅仅转载 2011-12-19 12:19:37 · 2926 阅读 · 1 评论 -
为什么bios将mbr装载到0x7c00地址,0x7c00怎么来的?
Do you know "0x7C00", a magic number, in x86 assembler programming ?"0x7C00" is the memory address which BIOS loads MBR(Master Boot Record, a first sector in hdd/fdd) into. OS or bootloader develope转载 2011-12-19 08:49:41 · 2349 阅读 · 0 评论 -
非常有用的一些Linux命令解析
一 top命令top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器。下面详细介绍它的使用方法。认识top的显示结果top命令的显示结果如下所示: top - 01:06:48 up 1:22, 1 user, load average: 0.06, 0.60, 0转载 2012-02-16 08:59:46 · 1833 阅读 · 0 评论 -
使用Qt Style Sheets制作UI特效
使用Qt Style Sheets制作UI特效引言 作为一套GUI框架,Qt是非常强大的。(注:Qt 不仅是一套优秀的GUI框架,同时也是一套出色的应用程序框架)。在UI的制作方面Qt为广大开发者提供了一套强大而易用的工具,她就是——Qt Style Sheets。本文将向大家举例介绍如何使用Qt Style Sheets制作个性化的UI界面。例子程序(stylesheet转载 2012-02-24 17:06:25 · 9539 阅读 · 4 评论 -
arm11 Tiny6410 gpio驱动实现输入和输出
这个驱动人家都说很简单,因为需要,所以我自己写了一个。其实最后发现要是初学者写这个驱动还是不简单的,问了好多人,发了好多帖子,会的人寥寥无几啊,网上贴的都是一些只有中断输入button和只有输出的led的demo,很难使用,我把我写好的给大家分享下,大家有什么问题可以直接问我。我把需要注意的地方列出来在以前常见的GPIO作为中断使用的时候,一般做以下步骤即可:* 设置GPIO复用功原创 2012-09-13 14:18:04 · 4957 阅读 · 0 评论