summaryrefslogtreecommitdiffstats
path: root/security/bpf
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2022-11-10 17:41:28 +0100
committerMiguel Ojeda <ojeda@kernel.org>2022-12-04 01:59:15 +0100
commitd126d2380131dfbc880f5b5f0e3015e9bef6fa1c (patch)
tree72fd27366e7c043151f0cefd2eaa3880b47b1260 /security/bpf
parent650ec51561fd201bcf47ce9b1d9b6fedd4bb60a6 (diff)
downloadlinux-d126d2380131dfbc880f5b5f0e3015e9bef6fa1c.tar.gz
linux-d126d2380131dfbc880f5b5f0e3015e9bef6fa1c.tar.bz2
linux-d126d2380131dfbc880f5b5f0e3015e9bef6fa1c.zip
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 <alex.gaynor@gmail.com> Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com> Co-developed-by: Milan Landaverde <milan@mdaverde.com> Signed-off-by: Milan Landaverde <milan@mdaverde.com> Signed-off-by: Gary Guo <gary@garyguo.net> [Reworded, adapted for upstream and applied latest changes] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'security/bpf')
0 files changed, 0 insertions, 0 deletions