From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="d7iw7/7V" Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B66E1700; Fri, 1 Dec 2023 01:01:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Y5uy0MWBWonI5NFoxzOx49kq9VkUlR2QCbejhy+1wrw=; b=d7iw7/7VqyuiiFGnXN/Iv8/rhp DKaeRnJK0R1GWrRLXEyYN87/g237v2HeFk8sjr1hdTYbOuQn7fK7iP48jyDb+OMooT6dB66DY5up6 B6BJ58KjpPUNXdvjD8toyEEGKpu4zClJexJKZM5/MiT4uL4QDlnAP2BcpoIPthAkPrnjBUS872WmL 35pMQ1MmeQAG9KicW0gt+mPYkuZqnXGquaWMZM5U4VMUCSr4ihufvyCnGBZ+kzRBsFNu+WETdM+RQ pYUSoYf5k9M9yU/UZN1rk1Tq0OVQu5m6gnvEZ5y3b4t2kn5DehmXJgY4ETB0UwoM8fO/IunW7JqKx 440EuXMQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1r8zO4-0029xu-1C; Fri, 01 Dec 2023 09:00:43 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 056A830040C; Fri, 1 Dec 2023 10:00:40 +0100 (CET) Date: Fri, 1 Dec 2023 10:00:39 +0100 From: Peter Zijlstra To: Boqun Feng Cc: Matthew Wilcox , Alice Ryhl , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alexander Viro , Christian Brauner , Greg Kroah-Hartman , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Carlos Llamas , Suren Baghdasaryan , Dan Williams , Kees Cook , Thomas Gleixner , Daniel Xu , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-fsdevel@vger.kernel.org, Josh Triplett Subject: Re: [PATCH 1/7] rust: file: add Rust abstraction for `struct file` Message-ID: <20231201090039.GF3818@noisy.programming.kicks-ass.net> References: <20231129-alice-file-v1-0-f81afe8c7261@google.com> <20231129-alice-file-v1-1-f81afe8c7261@google.com> <20231129152305.GB23596@noisy.programming.kicks-ass.net> <20231130104226.GB20191@noisy.programming.kicks-ass.net> Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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*() ?