lib.rs 718 B

123456789101112131415161718192021222324252627
  1. // SPDX-License-Identifier: GPL-2.0
  2. //! UAPI Bindings.
  3. //!
  4. //! Contains the bindings generated by `bindgen` for UAPI interfaces.
  5. //!
  6. //! This crate may be used directly by drivers that need to interact with
  7. //! userspace APIs.
  8. #![no_std]
  9. // See <https://github.com/rust-lang/rust-bindgen/issues/1651>.
  10. #![cfg_attr(test, allow(deref_nullptr))]
  11. #![cfg_attr(test, allow(unaligned_references))]
  12. #![cfg_attr(test, allow(unsafe_op_in_unsafe_fn))]
  13. #![allow(
  14. clippy::all,
  15. dead_code,
  16. missing_docs,
  17. non_camel_case_types,
  18. non_upper_case_globals,
  19. non_snake_case,
  20. improper_ctypes,
  21. unreachable_pub,
  22. unsafe_op_in_unsafe_fn
  23. )]
  24. include!(concat!(env!("OBJTREE"), "/rust/uapi/uapi_generated.rs"));