This is commonly done with the LIST_HEAD macro, which provides the declaration and initialization of the list.
这通常通过list_head宏来完成,这个宏提供列表的声明和初始化。
This macro permits iteration over the list with safeguards against removal of a list entry (which you'll do as part of the iteration).
这个宏将迭代列表,但阻止删除列表条目(删除列表条目是迭代操作的一部分)。
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宏手动创建一个列表头(例如,您的列表头位于另一个结构中)。
The % s macro used as the list of valid users means the current session name, which will be the name of the currently logged in user.
作为有效列表使用的%s宏表示当前会话名称,将为当前登录用户的名称。
The first section of the macro breaks down the list of constraints case into multiple single constraints cases.
宏的第一部分将约束列表分割成多个单一约束。
The LIST_ENTRY macro declares a structure that connects the elements in a doubly-linked list.
宏list_entry声明一个结构体。这个结构体把元素链接到双向链表中。
Shows how to create a macro that generates a list of the commands in the integrated development environment (IDE), together with the currently associated keyboard shortcuts.
显示如何创建一个宏,用以生成一个列表,其中列出集成开发环境(IDE)中的所有命令以及这些命令当前关联的键盘快捷键。
The character is used incorrectly in the formal parameter list of a macro definition.
这个字元在巨集定义的型式参数清单中的使用不正确。
The character is used incorrectly in the formal parameter list of a macro definition.
这个字元在巨集定义的型式参数清单中的使用不正确。
应用推荐