Re: [PATCH 1/7] rust: file: add Rust abstraction for `struct file`

From: Peter Zijlstra
Date: Fri Dec 01 2023 - 04:01:11 EST


On Thu, Nov 30, 2023 at 07:25:01AM -0800, Boqun Feng wrote:

> seems to me, the plan for this is something like below:
>
> asm!(
> "cmp {}, 42",
> "jeq {}",
> in(reg) val,
> label { println!("a"); },
> fallthrough { println!("b"); }
> );

Because rust has horrible syntax I can't parse, I can't tell if this is
useful or not :/ Can this be used to implement arch_static_branch*() ?