Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp647531rdb; Thu, 18 Jan 2024 14:39:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IETkk1LfTDJtlsYefYwP8quMmpydOgXvLZmp2G9oeVo6ydO6xHlvYZtgShVVUI7/Aa/j1rY X-Received: by 2002:aa7:c508:0:b0:557:f97:4ec with SMTP id o8-20020aa7c508000000b005570f9704ecmr940901edq.79.1705617545800; Thu, 18 Jan 2024 14:39:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705617545; cv=pass; d=google.com; s=arc-20160816; b=o/Dq+kSEM9I1EO9MyZakwiSFp1XL/lxdToncNbYLEoPj8N++QjzzILLo0t0PgyFZSU ymJKRdGyl5zQf3x0eU/Ghtbreuh2ujA2Gu6NlXGlfshHb+syDJr0K7NHEE5knxsaE8/7 yCXw0oetxJjXg2VmRqWRyh1PZj33WxBKrtGjG9PZ/J5tBGoxC2+cijezTuuVs87jGxJ/ vB4cv/Qqu5dRPMe3wtBWrTzUup0J4ZcKAX6/Hb9oj2rrsjMshQmXGOn58/4II+eoI4O1 ubD5fBaJsJQriMOf8oPh3toCQO0VXviBoUS48LD2Raw/fm7dFKyxJiUaSE4cR1IYT2AN a33Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from; bh=R7DEvop/vpHS36YbPTavB1xgYf7nVtVm6AgD94SQdPE=; fh=gEJuEEg7INCYwL3nfcgYXP+SBv5x00p3nBKdu9dzGbk=; b=n06o8+nKgaI3iMRJ+IhA85k0NCaHpJdHxCCFNu2T9rW11QX5Fk4ZzUVXiqG70aXC6W 7D0P2QdFPXaHqclCyWb+tnjsII7SY/+2Ztn61uHCAA/YpiBZ1IYQo56EXt87PY+1AIh0 SBSXZmyKYQdJfCOXGzvpEFZLf4X6CRdcBAoA6egwU//OKOzWinbArwshxlBQ4VZa7Td6 qeC8K1atkrD7cnnMrRkCgI4Wxqfp6kUT4cscP+/qJ6Ln4RDElSiyy7Dmn64qW84AndSB SwyX+WASLrAD+rc4MrGE4HZJKaXioTzswRWf27SYAq/vcnnEw/gZXX6VJ7oxjcNAVNMv KLhg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=valentinobst.de); spf=pass (google.com: domain of linux-kernel+bounces-30606-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30606-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id di1-20020a056402318100b0055a485232casi376893edb.606.2024.01.18.14.39.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 14:39:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30606-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=valentinobst.de); spf=pass (google.com: domain of linux-kernel+bounces-30606-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30606-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8CF811F2324D for ; Thu, 18 Jan 2024 22:39:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 938AA1DA4A; Thu, 18 Jan 2024 22:38:49 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B8BF9461; Thu, 18 Jan 2024 22:38:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705617529; cv=none; b=bn6QtrKgsLFB3Cwvau3ZakkGHT4VffANCxChapVbzShxypti3N6Z9BRPDbF49asIzYKFbWch2k+RpBh6+IkvUN5Z6q6oX8NVthlWRz2IJ5P+GmB9tgzeWFukRoXXi4Pdn+nS28Hsp2UpQe+IIBI16nJeYNNN3cohnbocb3tC1Mo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705617529; c=relaxed/simple; bh=Uxm3ZCJ1AIpcuno353fMYV7ATucuO6QsXzXIQvNIKCs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=h+1PCDWV8aUac3AoPkQkGVxKwAfuovjiXHEIE/NIdpi7XPRxeO8yXVGJxzOZZ1+m8FfZUjFR2EfGceiidlpiGMGs0zt1PUffbR+Ill6ck9BzT1Awe8ikvHlucYDbcIWrf/G3GXLmkyVUUEQP11kAc6h0PBbgM20biqI/ZE8L6Hk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=valentinobst.de; spf=pass smtp.mailfrom=valentinobst.de; arc=none smtp.client-ip=212.227.17.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=valentinobst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=valentinobst.de Received: from archbook.fritz.box ([217.245.156.100]) by mrelayeu.kundenserver.de (mreue107 [213.165.67.113]) with ESMTPSA (Nemesis) id 1M5PRT-1rRQUy2IBZ-001Pcc; Thu, 18 Jan 2024 23:37:57 +0100 From: Valentin Obst To: aliceryhl@google.com Cc: a.hindborg@samsung.com, alex.gaynor@gmail.com, arve@android.com, benno.lossin@proton.me, bjorn3_gh@protonmail.com, boqun.feng@gmail.com, brauner@kernel.org, cmllamas@google.com, dan.j.williams@intel.com, dxu@dxuuu.xyz, gary@garyguo.net, gregkh@linuxfoundation.org, joel@joelfernandes.org, keescook@chromium.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, maco@android.com, ojeda@kernel.org, peterz@infradead.org, rust-for-linux@vger.kernel.org, surenb@google.com, tglx@linutronix.de, tkjos@android.com, viro@zeniv.linux.org.uk, wedsonaf@gmail.com, willy@infradead.org, Valentin Obst Subject: Re: [PATCH v3 1/9] rust: file: add Rust abstraction for `struct file` Date: Thu, 18 Jan 2024 23:37:15 +0100 Message-ID: <20240118223715.3995-1-kernel@valentinobst.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240118-alice-file-v3-1-9694b6f9580c@google.com> References: <20240118-alice-file-v3-1-9694b6f9580c@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:3ZWllC8Ho3Z1onA8+rX5xJsG/l3qEtc5Ga7MCEDrVMq0Zk6MyfS qlntgSFZEb3Mpv3UOrHw1L6NsrfLvM4jOkdu+lm2XIgPb2KESk3Tzy4/vbbYXJdDltP0M8n wrq1tYEyFWC4CPGlLP7c2hcS9zlRYCIe6L9eyOUnXS2L4iAkBCz9m8C4vbwkQ8gXUkINKiv NX+VifNLl/6OurNPKwikg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:xesSxXeBpSU=;9lHmk8RuItJ7n6vAzMvDrbgX+Eb SpGqgTDwcB3AoAMxyPTeTzm1XlH5c3zBNMVv2GEF6LbgzQaN98cMIHU8iueSCV1MpeTj6HK2b nFuslhWGVU9tdGfpO9PpEu7Up2lvIQI6IQBB85PwhHrHm8dxtP1begBJA9DJR+X0+PbUXBRDC FUHG2mZMvpWTxTjj8S/beDV8bQe6N3O/A8UNlK+UBi7Vj8eoc3Y2hs3uzWPOME209rphPJc2y QYpYcLfIXS3XC7JfnKgYy0rIKQ+BmaxJOnET8+A1e06V8Zxkpejx6J/Re92FZqCr3V7NUI4r9 RtjkSrPyaumc/RAG8+ZQJC8RqIRPeqqV/UPqPrCdZCYd3zRCjqtB3bf9TzflfCJTQbz1fMPbi irA10iZoO0YsvdwmTvtAx02kJoariLsIgAg59juICx7YDm9vGPLbqOf8iZJ3UP0HagRFGsAdR kXM61skWLV7WNkyHVTH9WENNgSJrrkOcc7qpe0CzvXwEJlC5X+UhX7td3w8Kp9ODf5d6asJI8 kPjZ20Mxdxv6EkHzrv8zAyONZAtAZotrP2uSWBRs2KjWWlLdZmCCFXUq9MeVGDKv4pnNzlFj2 D8cSGk3qpozSwUeYoEWk5xlfhyllRkeOWIjAK2DPOWt1Wm+6GX/jKvK37iKc4rj0JtqYQI8e2 mhMx1VKyS5xpGm57FzltNjNy09ZP3DNWJqTqYFl6SbjLv14bqUB8ghH3t+rFcThfZ8wPUfCXR kv2AHhIsKoFfa6aqqMT9WssODkrNsBJ4+WIKLuKJtpgO9aQGVmxCL3ks95HhDYYpczHg61bkR qDqLM1QDeF3/Bzf+sp9dOL/iyNaJgHaR13Gw1T30FPuwbRe3rp0hMKZIJ8JY4mtL1e+xtj7u5 z+mbt8mG6vNCKOGo6UiiL+vD20vJi7xkSOkM= > +++ b/rust/kernel/file.rs > @@ -0,0 +1,251 @@ > +// SPDX-License-Identifier: GPL-2.0 > + > +//! Files and file descriptors. > +//! > +//! C headers: [`include/linux/fs.h`](../../../../include/linux/fs.h) and > +//! [`include/linux/file.h`](../../../../include/linux/file.h) > + These could be converted to use Commit bc2e7d5c298a ("rust: support `srctree`-relative links"). Same applies to links in `rust/kernel/cred.rs`, and `rust/kernel/security.rs`. - Valentin