Commit 4cb6d81d authored by Wedson Almeida Filho's avatar Wedson Almeida Filho Committed by Treehugger Robot
Browse files

FROMLIST: rust: add `container_of!` macro



This macro is used to obtain a pointer to an entire struct
when given a pointer to a field in that struct.

Signed-off-by: default avatarWedson Almeida Filho <wedsonaf@gmail.com>
Signed-off-by: default avatarMatt Gilbride <mattgilbride@google.com>

Bug: 324206405
Link: https://lore.kernel.org/all/20240205-b4-rbtree-v1-1-995e3eee38c0@google.com/


Change-Id: Ifd118a599d6f718036b0f4fee0ea3f5bb2817d43
Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>
parent 879f4372
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment