- 博客(17)
- 资源 (1)
- 收藏
- 关注
转载 Device Drivers, Part 1: Linux Device Drivers for Your Girl Friend
This series on Linux device drivers aims to present the usually technical topic in a way that is more interesting to a wider cross-section of readers.“After a week of hard work, we finally got our
2016-06-27 10:09:06 673
转载 Writing a Linux device driver module for kernels 2.6 or later with udev
This is a short tutorial for a sample character device module aimed at Linux kernels 2.6 and later (including 3.x and 4.x) using udev.I thought might as well produce my own tutorial, after finding
2016-06-27 03:42:41 707
原创 运算符优先级有关的问题
代码如下: char a = 'c'; char b = 'd'; int ret = 100 + (a == b) ? 0 : 1;ret 的值为0, 而不是101.原因是, + 的优先级高于 ?, 所以,最后一行代码实际上是:int ret = (100 + (a == b)) ? 0 : 1;所以,原来的代码需要改为:int ret = 100 + ((a == b)
2016-06-26 20:40:25 344
转载 Easy to understand Dynamic Programming – Edit distance
IMPORTANT: This blog has been moved to jlordiales.me. The content here might be outdated. To see this post on the new blog go tohttp://jlordiales.me/2014/03/01/dynamic-programming-edit-distance
2016-06-26 20:26:38 668
原创 error: #error Your compiler is too buggy
今天在编内核代码的时候,报下面的错误:arch/arm/kernel/asm-offsets.c:54:2: error: #error Your compiler is too buggy; it is known to miscompile kernels #error Your compiler is too buggy; it is known to miscompile kerne
2016-06-19 22:22:28 2155
原创 Ubuntu 16.04上安装 git-daemon
git-daemon-run 在 16.04上不能用起来,因为它依赖于runit, runit又依赖于 upstart. 在 16.04版本里面, upstart被 systemd替代啦。但可以使用另一个版本的 git-daemon: git-daemon-sysvinit.使用命令sudo aptitude install git-daemon-sysvinit 安装 git-
2016-06-19 20:51:03 4418
转载 Setting up Systemd on Debian in 10 minutes
Recently I've been reading more and more about Systemd. Now, most distros have already moved toSystemd but I'm using Debian and was stuck withinit which was the default. Given the recentdiscussion o
2016-06-19 04:31:13 443
转载 RHEL7: How to get started with Systemd.
PresentationAs the Systemd now replaces SysVinit, it is time to get familiar with it and learn new commands. You can use this page as aSystemd tutorial.Systemd makes a server boot quicker becaus
2016-06-19 02:49:10 1218
原创 heap sort
根据算法导论实现:#include #include int parent(int i){ return (i/2);}int left(int i){ return 2*i;}int right(int i){ return 2*i+1;}#define MAX_SIZE 100struct heap{ int data[MAX_SIZE];
2016-06-16 06:06:11 542
转载 The Hello Wayland Tutorial
I’ve written a hello world for wayland. It’s available at:https://github.com/hdante/hello_waylandIntroductionFrom the end user perspective it’s very easy to understand what wayland is: it’s a
2016-06-14 23:51:10 8275
原创 vi命令
一两个字母作为vi 命令。1) 大小写敏感2) 在输入命令的时候,并不现实在屏幕上3)不需要输入enter。另外还有 bottom-line 命令。这些命令有不同的字符开头来标记。比如, / 开始一个搜索命令。 冒号: 开始一个 ex 命令。保存并且退出命令: ZZ退出但不保存: :e! 或者 :q!临时退出vi 到shell:按 CTRL-Z 或者在 vi 执
2016-06-13 01:28:28 425
转载 UVA 601: The Path
题目:https://uva.onlinejudge.org/external/6/p601.pdf答案:#include #include char g[105][105];int used[105][105], n;void dfs(int x, int y, int w) { if(x = n || y >= n) return ; if(
2016-06-10 23:54:40 725
转载 A TPM error (6) occurred attempting to read a pcr value
在启动过程中看到这个log.解决方法:在 BIOS的 security chip里面,选择 activate 或者 disable.https://bbs.archlinux.org/viewtopic.php?id=139415
2016-06-05 10:08:46 9220
原创 Ubuntu 升级内核
编译好的内核镜像和头文件在http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.8-wily/升级方法如下(i386):wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.8-wily/linux-headers-4.4.8-040408_4.4.8-040408.2016042
2016-06-05 09:38:41 723
原创 linux message queues
Overview of Message QueuesA message queue is a software object maintained by the IRIX kernel, logically apart from the address space of any process. When you create a message queue, the queue has
2016-06-01 02:36:56 1724
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人