Like any list implementation, you need a list head that serves as the anchor for the list.
与其他列表实现一样,需要一个列表头来充当列表的锚点。
The API provides a list_head structure that is used to represent not only the list head (anchor) but also the in-structure list Pointers.
这个API提供一个list_head结构,用于表示列表头(锚点)和结构内(in -structure)列表指针。
You can also create a list head manually (for example, if your list head is in another structure) through the use of the LIST_HEAD_INIT macro.
也可以通过使用LIST_HEAD_INIT宏手动创建一个列表头(例如,您的列表头位于另一个结构中)。
You can also create a list head manually (for example, if your list head is in another structure) through the use of the LIST_HEAD_INIT macro.
也可以通过使用LIST_HEAD_INIT宏手动创建一个列表头(例如,您的列表头位于另一个结构中)。
应用推荐