• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Header that contains the code (mostly headers) for which Rust bindings
4  * will be automatically generated by `bindgen`.
5  *
6  * Sorted alphabetically.
7  */
8 
9 #include <kunit/test.h>
10 #include <linux/blk-mq.h>
11 #include <linux/blk_types.h>
12 #include <linux/blkdev.h>
13 #include <linux/cred.h>
14 #include <linux/errname.h>
15 #include <linux/ethtool.h>
16 #include <linux/fdtable.h>
17 #include <linux/file.h>
18 #include <linux/firmware.h>
19 #include <linux/fs.h>
20 #include <linux/jiffies.h>
21 #include <linux/jump_label.h>
22 #include <linux/list_lru.h>
23 #include <linux/mdio.h>
24 #include <linux/miscdevice.h>
25 #include <linux/mman.h>
26 #include <linux/memfd.h>
27 #include <linux/page_size_compat.h>
28 #include <linux/phy.h>
29 #include <linux/pid_namespace.h>
30 #include <linux/poll.h>
31 #include <linux/refcount.h>
32 #include <linux/sched.h>
33 #include <linux/security.h>
34 #include <linux/shmem_fs.h>
35 #include <linux/slab.h>
36 #include <linux/task_work.h>
37 #include <linux/tracepoint.h>
38 #include <linux/wait.h>
39 #include <linux/workqueue.h>
40 #include <trace/events/rust_sample.h>
41 #include <uapi/linux/falloc.h>
42 #include <uapi/linux/sched/types.h>
43 
44 /* `bindgen` gets confused at certain things. */
45 const size_t RUST_CONST_HELPER_ARCH_SLAB_MINALIGN = ARCH_SLAB_MINALIGN;
46 const size_t RUST_CONST_HELPER_PAGE_SIZE = PAGE_SIZE;
47 const gfp_t RUST_CONST_HELPER_GFP_ATOMIC = GFP_ATOMIC;
48 const gfp_t RUST_CONST_HELPER_GFP_KERNEL = GFP_KERNEL;
49 const gfp_t RUST_CONST_HELPER_GFP_KERNEL_ACCOUNT = GFP_KERNEL_ACCOUNT;
50 const gfp_t RUST_CONST_HELPER_GFP_NOWAIT = GFP_NOWAIT;
51 const gfp_t RUST_CONST_HELPER___GFP_ZERO = __GFP_ZERO;
52 const gfp_t RUST_CONST_HELPER___GFP_HIGHMEM = ___GFP_HIGHMEM;
53 const gfp_t RUST_CONST_HELPER___GFP_NOWARN = ___GFP_NOWARN;
54 const blk_features_t RUST_CONST_HELPER_BLK_FEAT_ROTATIONAL = BLK_FEAT_ROTATIONAL;
55 
56 #ifdef CONFIG_ASHMEM_RUST
57 #include "../../drivers/staging/android/ashmem.h"
58 const size_t RUST_CONST_HELPER_ASHMEM_NAME_PREFIX_LEN = ASHMEM_NAME_PREFIX_LEN;
59 const size_t RUST_CONST_HELPER_ASHMEM_FULL_NAME_LEN = ASHMEM_FULL_NAME_LEN;
60 #endif
61 
62 #if IS_ENABLED(CONFIG_ANDROID_BINDER_IPC_RUST)
63 #include "../../drivers/android/binder/rust_binder.h"
64 #include "../../drivers/android/binder/rust_binder_hooks.h"
65 #include "../../drivers/android/binder/rust_binder_events.h"
66 #include "../../drivers/android/binder/page_range_helper.h"
67 #endif
68