宏的第一部分将约束列表分割成多个单一约束。
The first section of the macro breaks down the list of constraints case into multiple single constraints cases.
这通常通过list_head宏来完成,这个宏提供列表的声明和初始化。
This is commonly done with the LIST_HEAD macro, which provides the declaration and initialization of the list.
也可以通过使用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.
应用推荐