hisso.li
  • Login
Show Navigation
  • Public

    • Groups

Conversation

Notices

  1. まちカドおるみん御嬢様 (orumin@mstdn.maud.io)'s status on Friday, 16-Apr-2021 20:39:08 JST まちカドおるみん御嬢様 まちカドおるみん御嬢様

    Rust in the Linux kernel (Google security blog) [LWN.net] https://lwn.net/Articles/852704/

    In conversation Friday, 16-Apr-2021 20:39:08 JST from mstdn.maud.io permalink

    Attachments

    1. Rust in the Linux kernel (Google security blog)
      The Google security blog has a detailed article on what a device driver written in Rust looks like. "That is, we use Rust's ownership discipline when interacting with C code by handing the C portion ownership of a Rust object, allowing it to call functions implemented in Rust, then eventually giving ownership back. So as long as the C code is correct, the lifetime of Rust file objects work seamlessly as well, with the compiler enforcing correct lifetime management on the Rust side, for example: open cannot return stack-allocated pointers or heap-allocated objects containing pointers to the stack, ioctl/read/write cannot free (or modify without synchronization) the contents of the object stored in filp->private_data, etc."
    • Help
    • About
    • FAQ
    • Privacy
    • Source
    • Version
    • Contact

    hisso.li is a social network. It runs on GNU social, version 2.0.0-alpha0, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All hisso.li content and data are available under the Creative Commons Attribution 3.0 license.

    Switch to desktop site layout.