aboutsummaryrefslogtreecommitdiffstats
path: root/rust/alloc/vec/mod.rs
diff options
context:
space:
mode:
authorWedson Almeida Filho <[email protected]>2024-02-19 11:48:08 +0000
committerMiguel Ojeda <[email protected]>2024-02-25 18:17:31 +0000
commite944171070b65521c0513c01c56174ec8fd7d249 (patch)
treedbd917cf6917f54f77f3a816153bddc20bdc5b8a /rust/alloc/vec/mod.rs
parentrust: str: implement `Display` and `Debug` for `BStr` (diff)
downloadkernel-e944171070b65521c0513c01c56174ec8fd7d249.tar.gz
kernel-e944171070b65521c0513c01c56174ec8fd7d249.zip
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: Wedson Almeida Filho <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Tested-by: Alice Ryhl <[email protected]> Signed-off-by: Matt Gilbride <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/alloc/vec/mod.rs')
0 files changed, 0 insertions, 0 deletions