1. 程式人生 > >LINUX核心連結串列筆記

LINUX核心連結串列筆記

[email protected]:~/CMburn-master$ find /usr/ -name list.h -print
/usr/src/linux-headers-4.15.0-24-generic/include/config/system/blacklist/hash/list.h
/usr/src/linux-headers-4.15.0-24-generic/include/config/defconfig/list.h
/usr/src/linux-headers-4.15.0-24-generic/scripts/kconfig/list.h
/usr/src/linux-headers-4.15.0-24/include/linux/list.h
/usr/src/linux-headers-4.15.0-24/scripts/kconfig/list.h /usr/src/linux-headers-4.15.0-23-generic/include/config/system/blacklist/hash/list.h /usr/src/linux-headers-4.15.0-23-generic/include/config/defconfig/list.h /usr/src/linux-headers-4.15.0-23-generic/scripts/kconfig/list.h /usr/src/linux-headers-4.15.0-23/include/linux/list.h /usr/src/linux-headers-4.15.0-23/scripts/kconfig/list.h
/usr/src/linux-headers-4.15.0-24/include/linux/list.h /usr/src/linux-headers-4.15.0-24/scripts/kconfig/list.h /usr/src/linux-headers-4.15.0-23-generic/include/config/system/blacklist/hash/list.h /usr/src/linux-headers-4.15.0-23-generic/include/config/defconfig/list.h /usr/src/linux-headers-4.15.0-23-generic/scripts/kconfig/list.h /usr/src/linux-headers-4.15.0-23/include/linux/list.h /usr/src/linux-headers-4.15.0-23/scripts/kconfig/list.h

選取加粗的檔案拷貝到本地閱讀發現以下結構體未知:

struct list_head
[email protected]:~/CMburn-master$ grep -rHn "struct list_head {" /usr/src/linux-headers-4.15.0-24/include/*
/usr/src/linux-headers-4.15.0-24/include/linux/types.h:186:struct list_head {