• [$] Owning C types from Rust code

    From LWN.net@1337:1/100 to All on Tue Oct 13 14:45:05 2026
    [$] Owning C types from Rust code

    Date:
    Tue, 13 Oct 2026 13:33:13 +0000

    Description:
    Rust's system of ownership and borrowed references is convenient when it can correctly model a program's needs. The Rust for Linux project has worked to provide adapters between Rust's semantics and the existing C code
    in the kernel. At Kangrejos 2026, Andreas Hindborg spoke about a patch
    series implementing the next such adaptor: an Ownable trait for
    representing objects that are allocated in C code, but which Rust code is responsible
    for cleaning up (if not necessarily deallocating) when it is done with them.
    He hoped to finally reach a consensus on the patch series, after months of discussion on the mailing list.

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


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