xref: /linux/rust/ffi.rs (revision 25768de50b1f2dbb6ea44bd5148a87fe2c9c3688)
1*d072acdaSGary Guo // SPDX-License-Identifier: GPL-2.0
2*d072acdaSGary Guo 
3*d072acdaSGary Guo //! Foreign function interface (FFI) types.
4*d072acdaSGary Guo //!
5*d072acdaSGary Guo //! This crate provides mapping from C primitive types to Rust ones.
6*d072acdaSGary Guo //!
7*d072acdaSGary Guo //! The Rust [`core`] crate provides [`core::ffi`], which maps integer types to the platform default
8*d072acdaSGary Guo //! C ABI. The kernel does not use [`core::ffi`], so it can customise the mapping that deviates from
9*d072acdaSGary Guo //! the platform default.
10*d072acdaSGary Guo 
11*d072acdaSGary Guo #![no_std]
12*d072acdaSGary Guo 
13*d072acdaSGary Guo pub use core::ffi::*;
14