1 // SPDX-License-Identifier: GPL-2.0
5 //! Contains the bindings generated by `bindgen` for UAPI interfaces.
7 //! This crate may be used directly by drivers that need to interact with
11 // See <https://github.com/rust-lang/rust-bindgen/issues/1651>.
12 #![cfg_attr(test, allow(deref_nullptr))]
13 #![cfg_attr(test, allow(unaligned_references))]
14 #![cfg_attr(test, allow(unsafe_op_in_unsafe_fn))]
17 clippy::undocumented_unsafe_blocks,
21 non_upper_case_globals,
25 unsafe_op_in_unsafe_fn
28 // Manual definition of blocklisted types.
29 type __kernel_size_t = usize;
30 type __kernel_ssize_t = isize;
31 type __kernel_ptrdiff_t = isize;
33 include!(concat!(env!("OBJTREE"), "/rust/uapi/uapi_generated.rs"));