I know what the macro does.
In many kernel level codes, it is often used to traverse linked-list.
I want to find other useful cases.
When do you use container_of or CONTAINING_RECORD macro?
When is the macro extremely useful?
I know what the macro does.
In many kernel level codes, it is often used to traverse linked-list.
I want to find other useful cases.
When do you use container_of or CONTAINING_RECORD macro?
When is the macro extremely useful?