Yueh-Shun Li (ShamrockLee)
7/30/2023contributed by < ShamrockLee >
6/24/2023contributed by < ShamrockLee >
6/17/2023contributed by < ShamrockLee > queue.c 函式實作 實作細節 Linux 核心的 list API 使用帶有起始節點( list head )的環狀雙向鍊結串列。 節點以結構 struct list_head 表示,該結構有兩個成員 prev 、 next ,分別存放指向串列中前一個與後一個節點的指標。 每個節點所攜帶的資料,以巨集 list_entry 存取。 list_entry 即 container_of ,可用來存取帶有該節點變數(非指標)的結構的位址,藉以存取該結構中帶有的資料。 前述結構在 queue.h 當中有 element_t 及 queue_contex_t
5/18/2023or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up