Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/rust/helpers/list.c
170831 views
1
// SPDX-License-Identifier: GPL-2.0
2
3
/*
4
* Helpers for C circular doubly linked list implementation.
5
*/
6
7
#include <linux/list.h>
8
9
__rust_helper void rust_helper_INIT_LIST_HEAD(struct list_head *list)
10
{
11
INIT_LIST_HEAD(list);
12
}
13
14
__rust_helper void rust_helper_list_add_tail(struct list_head *new, struct list_head *head)
15
{
16
list_add_tail(new, head);
17
}
18
19