From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD7B5C4167B for ; Wed, 6 Dec 2023 13:50:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378626AbjLFNuX (ORCPT ); Wed, 6 Dec 2023 08:50:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378530AbjLFNuW (ORCPT ); Wed, 6 Dec 2023 08:50:22 -0500 Received: from mail-ua1-x930.google.com (mail-ua1-x930.google.com [IPv6:2607:f8b0:4864:20::930]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1B4CD44 for ; Wed, 6 Dec 2023 05:50:27 -0800 (PST) Received: by mail-ua1-x930.google.com with SMTP id a1e0cc1a2514c-7c495bec2f7so1435617241.2 for ; Wed, 06 Dec 2023 05:50:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701870626; x=1702475426; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=T1BAIjik9oTj09NNiSlzlo6ZrWVwsHGjHjL12aXAbcU=; b=RraM5P2DnwZdpgz+znpFwoBQhT3z1f9JHV29x93o6fW93U2z5SaSU9Y+Mi7VxkEEaf 5FnRIS/EgS9ciRvrYKCeuz/2Un6tt3dBEGQYA/NC6V6628OR2Q79HlK90xoz0vW1Bg0u PqSiT6vYZzxUJqfbyehWQKyWNDqP09NRRGhEiPl9/nGavy9zu0nqzRF2AL6+ijctxXPI vg9dk0QroWL7PcmlYQUxIwWQO6bFEdrukD7Jst9ikxhSPjatnGAIixsIKVyIygMLJMCT yc0tyRkSo8rztc24I4RxfCQz2dgiAjGxGvssquhD1HFiUJ2zecH4XpFUlz7CP90qj9bq d4JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701870626; x=1702475426; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T1BAIjik9oTj09NNiSlzlo6ZrWVwsHGjHjL12aXAbcU=; b=GzbKGkikaDO3G96gRlpZpmd3E4Fp6CASsQR4dViXwl9VRvjGEITpJSV5n8Ke/2cfiF Pwfo5Dhzj5KB9SCMM17EwwGJFC2jevNwdIbamI6iDFPI7rCpnxeIyA3zAYDdTIlgSzwp sPnoV32ZW2gcgvfAtJEYGvB0nTitjFn4sMZlh040m3OkpJe/vRLx7WRXw3tb6naW91kZ P9u5pEB66WJPlBYrcLHohU2gnpnMhwrHFJiMqTfjmCd+qTiFfP/t3djIhEjAjS4OG/hZ hcpTbjadnLoZhIx/RrSzCuzGVRhPdJdPDlmXdK7pMDLIR7k8Qg0lmdjzxfWVALVton9f 3N/Q== X-Gm-Message-State: AOJu0Yx7Jeydv1Ojtnq6xallU4Iau1t0kdnB5KcOOAEaykD7yM8xDpwk +I16HlTPaWl0RtlVdJxwj8I8Rbp8IEgAJK0iJ13aRA== X-Google-Smtp-Source: AGHT+IFCHoT3X5T8cHfrBHVSfTA7dsZwWY82Djuo29t0Svrr6ZOibGhfeCDgYY98HIowh3TZA6jdedhUpLZiicw/vuY= X-Received: by 2002:a05:6102:512c:b0:464:53e4:fec3 with SMTP id bm44-20020a056102512c00b0046453e4fec3mr417945vsb.22.1701870626607; Wed, 06 Dec 2023 05:50:26 -0800 (PST) MIME-Version: 1.0 References: <20231206-alice-file-v2-0-af617c0d9d94@google.com> <20231206-alice-file-v2-5-af617c0d9d94@google.com> <20231206123402.GE30174@noisy.programming.kicks-ass.net> <20231206134041.GG30174@noisy.programming.kicks-ass.net> In-Reply-To: <20231206134041.GG30174@noisy.programming.kicks-ass.net> From: Alice Ryhl Date: Wed, 6 Dec 2023 14:50:15 +0100 Message-ID: Subject: Re: [PATCH v2 5/7] rust: file: add `Kuid` wrapper To: Peter Zijlstra Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alexander Viro , Christian Brauner , Greg Kroah-Hartman , =?UTF-8?B?QXJ2ZSBIasO4bm5ldsOlZw==?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Carlos Llamas , Suren Baghdasaryan , Dan Williams , Kees Cook , Matthew Wilcox , Thomas Gleixner , Daniel Xu , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-fsdevel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 6, 2023 at 2:40=E2=80=AFPM Peter Zijlstra wrote: > > I can reimplement these specific functions as inline Rust functions, > > That would be good, but how are you going to do that without duplicating > the horror that is struct task_struct ? That shouldn't be an issue. The bindgen tool takes care of generating a Rust version of struct task_struct for us at build time. The only thing it can't handle is inline functions and #defines. I'll respond to the other things later. But thank you for the thorough explanation! Alice