原创 Linux kernel makefile 文檔

  Linux Kernel Makefiles This document describes the Linux kernel Makefiles. 1. Overview The Makefi

原创 Usage of get_fs and set_fs

 最近在看 drbd的源代碼,內核模塊 socket通信中有下面一段程序:  mm_segment_t oldfs;     struct kvec iov = {         .iov_base = 

原创 內核中的 likely() 與 unlikely()

 在 2.6 內核中,隨處可以見到 likely() 和 unlikely() 的身影,那麼爲什麼要用它們?它們之間有什麼區別? 首先要明確:<?XML:NAMESPACE PREFIX = O />   

原创 理解C語言位域

有些信息在存儲時,並不需要佔用一個完整的字節, 而只需佔幾個或一個二進制位。例如在存放一個開關量時,只有0和1 兩種狀態,用一位二進位即可。爲了節省存儲空間,並使處理簡便,C語言又提供了一種數據結構,稱爲“位域”或“位段”。所謂“位域”是

原创 Sco unix openserver 5.0.7 mount iso image howto

marry -a /tmp/image mount /dev/marry/tmp/image /mnt

原创 The source of image UBB codes creator

編程採用C plus plus language,VI text editor and GDB.單文件代碼(未在代碼安全性方面做過多考慮) #include        <iostream>#includ

原创 kernel netlink connector 學習筆記

參考文章:  連接器(Netlink Connector)及其應用    Linux 系統內核空間與用戶空間通信的實現與分析  內核文檔 Documentation/connector/connector.txt 測試用例:     

原创 Go to hell !!!

今天心情很不好。Shit.fuck.go to hell The damn Mid-autumn,也不讓人清淨清淨。 一年多以來,我都選擇了逃避,到了該正視的時候了,不能再由別人牽着鼻子走了。 應該下定決心制定份長遠計劃了,要不只能一敗再

原创 Adding a New System Call into the Linux Kernel 2.6

========================================== Stage 1: To modify the kernel to add our own system call ===================

原创 VIM插件之NERD_comments.vim

下載地址: http://www.vim.org/scripts/script.php?script_id=1218 install details ***NOTE***: In version 2.0.0 the script fil

原创 判斷字符串是否符合時間格式

時間格式爲:HH:mm(12:39) Parse(),ParseExact發現格式不匹配不會返回null,會產生FormatException異常。 try    {         DateTime TaskRunTime = Date

原创 C# ArrayList 操作

C# : Convert ArrayList to string[] : string[] strArray = arrList.ToArray(typeof(string)) as string[]; Arraylist遍歷刪除元素

原创 程序員專用字體-Monospace/Fixed Width Programmer's Fonts

Good Programming Font Criteria Crisp clear characters.Extended characterset.Good use of whitespace.'l', '1' and 'i' ar

原创 Schedule of the following week(9.24~9.30)

9.24~9.30 Just master the linux Makefile.    Reference: Managing Projects with GNU Make Download:http://www.oreilly.c

原创 安裝農曆時鐘 lunar applet

OS:Fedora7 下載地址:http://ftp.inlsd.org/lunar-applet/     tar.gz :lunar-applet-1.6.tar.gz 解壓: $ tar -zxf lunar-applet-1