fishinabarrel / linux-kernel-module-rust

Framework for writing Linux kernel modules in safe Rust
GNU General Public License v2.0
1.34k stars 119 forks source link

Refs #150 -- document CStr itself #205

Closed alex closed 4 years ago

geofft commented 5 years ago

Is there an encoding requirement? I think our rules are that we only pass these to the kernel, we don't accept them (since the kernel doesn't generally care about encodings, and where it does it tends to like ISO-8859-1), i.e., they can only be constructed from Rust strings. Might be worth noting?

alex commented 5 years ago

It's built on a str so it has the same requirements as that does -- must be valid utf8, I'm not sure there's much to say as a result.