2009年5月26日 星期二

Use git on your local computer

對於 git 的使用相當的陌生
但很喜歡的用 git diff 產生出來 patch 的 format

git 也可以用在自己 local 的電腦上..
下面是自己建立 local repo 的方法

1. mkdir -p /home/git
2. cd /home/git
3. tar xvfj linux.tar.bz2
4. cd linux
5. git init
6. git add .
7. git commit

當你需要 clone 一份 code 的時候..可以下
git clone /home/git/linux mylinux

之後當你在 mylinux 下修改檔案後
就可以用 git diff 來產生 patch 了~~

2009年5月16日 星期六

User space RCU library relicensed to LGPLv2.1

User space 也有 RCU (Read-Copy Update) 可以用了!
Userspace RCU library


雖然不太了解 RCU 的真正用途是什麼..是知道是可以讓 data share 給很多人同時使用...
機制不明..

What is RCU, Fundamentally?
這裡有說明..覺得還蠻有興趣..再找時間看看...
如果可以運用於 user space multithread 的程式上的話...
應該是很不錯的~~

另外這個 project hosted 在 LTTng 上 ..
因為 LTTng 要用~~

2009年5月7日 星期四

Fixup in the very early time

start_kernel(void)
{
...
setup_arch(&command_line);
-> early_quirks(); /* can do chipset fixup */
...
acpi_early_init(); /* Enable ACPI */
...
...
}

early_quirks() 這個點可以在很早的時候就 fixup 一些奇怪的 bug
大部分都是 chipset 相關的 ...
這個點在 ACPI enable 之前...
也比所有的 initcall 都還要早 .... (initcall 其實己經算是很後面的..)