• [$] Standards for use of unsafe Rust in the kernel

    From LWN.net@1337:1/100 to All on Wed Aug 14 15:30:05 2024
    [$] Standards for use of unsafe Rust in the kernel

    Date:
    Wed, 14 Aug 2024 14:17:38 +0000

    Description:
    Rust is intended to let programmers write safer code.
    But compilers are
    not omniscient, and writing Rust code that interfaces with hardware (or that works with memory outside of Rust's lifetime paradigm) requires, at
    some point, the programmer's assurance that some operations are permissible. Benno Lossin suggested adding
    some more documentation to the Rust-for-Linux project clarifying the
    standards for commenting uses of unsafe in kernel code. There's general agreement that such standards are necessary, but less agreement on exactly when
    it is appropriate to use unsafe .

    ======================================================================
    Link to news story:
    https://lwn.net/Articles/982868/


    --- Mystic BBS v1.12 A47 (Linux/64)
    * Origin: tqwNet UK HUB @ hub.uk.erb.pw (1337:1/100)