contributed by < Henryshsieh
>
避免非必要的項目縮排 (即 *
和 -
),以清晰、明確,且流暢的漢語書寫。
q_new
- 使用 list.h 中提供的巨集和函式
- `LIST_HEAD(tmp); return &tmp;` 是錯誤:returns address of local variable。注意 [scope](https://stackoverflow.com/a/12380788)
q_insert_head()
與 q_insert_tail()
你所不知道的 C 語言: linked list 和非連續記憶體, Linux 核心原始程式碼巨集: container_of
element_t *node = list_entry(ptr_to_list_head, element_t, list);
作業系統術語及概念, 不僅是個執行單元的 Process: clone, UNIX 作業系統 fork/exec 系統呼叫的前世今生