diff options
author | Gary Guo <[email protected]> | 2022-11-10 17:41:28 +0100 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2022-12-04 01:59:15 +0100 |
commit | d126d2380131dfbc880f5b5f0e3015e9bef6fa1c (patch) | |
tree | 72fd27366e7c043151f0cefd2eaa3880b47b1260 /include/linux/overflow.h | |
parent | 650ec51561fd201bcf47ce9b1d9b6fedd4bb60a6 (diff) |
rust: str: add `CStr` type
Add the `CStr` type, which is a borrowed string that is guaranteed
to have exactly one `NUL` byte, which is at the end.
It is used for interoperability with kernel APIs that take C strings.
Add it to the prelude too.
Co-developed-by: Alex Gaynor <[email protected]>
Signed-off-by: Alex Gaynor <[email protected]>
Co-developed-by: Milan Landaverde <[email protected]>
Signed-off-by: Milan Landaverde <[email protected]>
Signed-off-by: Gary Guo <[email protected]>
[Reworded, adapted for upstream and applied latest changes]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions