diff options
| author | Alice Ryhl <[email protected]> | 2024-08-14 08:05:24 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2024-08-23 04:26:57 +0000 |
| commit | 40c53294596b4a7fe2ae126d7aab986752496c31 (patch) | |
| tree | 35c7d99b6e6496841a9246928aa21a28f1e49eca /rust/helpers/helpers.c | |
| parent | rust: list: add struct with prev/next pointers (diff) | |
| download | kernel-40c53294596b4a7fe2ae126d7aab986752496c31.tar.gz kernel-40c53294596b4a7fe2ae126d7aab986752496c31.zip | |
rust: list: add macro for implementing ListItem
Adds a macro for safely implementing the ListItem trait. As part of the
implementation of the macro, we also provide a HasListLinks trait
similar to the workqueue's HasWorkItem trait.
The HasListLinks trait is only necessary if you are implementing
ListItem using the impl_list_item macro.
Reviewed-by: Benno Lossin <[email protected]>
Signed-off-by: Alice Ryhl <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
