lkml.org 
[lkml]   [2021]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH 04/13] Kbuild: Rust support
    On Fri, Apr 16, 2021 at 6:38 AM Peter Zijlstra <peterz@infradead.org> wrote:
    >
    > AFAICT rust has try/throw/catch exception handling (like
    > C++/Java/others) which is typically implemented with stack unwinding of
    > its own.

    I was assuming that the kernel side would never do that.

    There's some kind of "catch_unwind()" thing that catches a Rust
    "panic!" thing, but I think it's basically useless for the kernel.

    Typical Rust error handling should match the regular kernel
    IS_ERR/ERR_PTR/PTR_ERR model fairly well, although the syntax is
    fairly different (and it's not limited to pointers).

    Linus

    \
     
     \ /
      Last update: 2021-04-16 19:06    [W:5.472 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site