From nobody Wed Jun 24 16:47:50 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4glntM6zm8z6jTTq for ; Wed, 24 Jun 2026 16:47:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4glntM31CBz3Mc9 for ; Wed, 24 Jun 2026 16:47:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782319675; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7LZNPIUbIOSCk9sdEi7w742yyrbzvOD6rVAi4QLq7us=; b=JlDO7aa1oBUd7b0U/ksWaaqlUkzQGJ+d6w77nM1Ig9q6W/UhkXXcBZgWlEtxgFsYMSlp42 hD7INfHC+d42NRg0B7x2ba5GjCgeJTv+CHHldLCZfo6bD2OeyGzp3iPSO6+DKqm+i7fi8z sClCnxa0TI0j4MGi9n7Xwv4JtdmT1T2Chq3CcfrjmSGc6gBIqPLZ32JnBnUzQIDIAQijCv n+4YiwiRTQlPqNfKvk9MZa5gUhk5zvqr259aKGE3T3wRGwyvI2LDfzcGy1y3gJ3qD9VNxf f30SIRBkfpylJ29LjJigvbJFABhmxXAjQU85CY9m+FrXyocNjKz0F6U/GgGfgQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782319675; a=rsa-sha256; cv=none; b=eiRJgvLhAlB2rRE2CBuBHHWWhNXP1KkP2qE0YijDMwZmO2TleAIfvEa0CiisojIrMZJ3LD jva+Z+6tEbVbURPsxqVdv5oQR435gLQH084N9WsYOqYPK1ClYThiFL2Qu6Lg+eceATxRac idBCvlX6ZZBsf9HnibfbQoafn0mUPcBgJy3MinzjTrMPXhlDXxVnu2R8NCg4M9+BpG1IsC v+em/dzeazLZfHN2Ov4uqyvfWvX9m8b2qpF1xsG9LIqmLX2NYSkB8TrK4Cyl6QFNRdz+Ke MTG+jRSZUESkRB4yvT9KHnUMrPAQgazkNKmNkeC08BDYuf66V2uCiPzmrT6/Mg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782319675; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7LZNPIUbIOSCk9sdEi7w742yyrbzvOD6rVAi4QLq7us=; b=mc0zkCfEGl5d8AJBh6qQRuphS6XYeuyBB5w8Ts1qHNeQOILvag3RyAMNOtwUVic/fsE6ZH yClS0to9u+iXCCHn79AthEpGtk67oL/bZPI/AoT2yS75+CYQ4LM6dlWrNE0GhyFjkgFjrh MYMJ4irtLjzQWJHH4vSMPKfuYQQbreCCVoRx+oR0tpjcUEvImsLZp0v+XvJdx+9Bz3QLAO hCCNvTBkiNt/1OI0C+cv7QYi93y5feA4nXokmKAiTzIeofcNb8Z4LAzSz1ho+xRezMZG+K JPxls+FEbPqqP2su9PjPTqhNEiCrTo/5xnYIQqcOhIkvS13GK+c+0WrZwIjE8A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4glntM1jYyzCNW for ; Wed, 24 Jun 2026 16:47:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 31a1c by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 24 Jun 2026 16:47:50 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron Subject: git: 272a12639440 - main - linuxkpi: Define `struct vfsmount` in List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 272a12639440c2865fefba8b38771f8dd0ac5778 Auto-Submitted: auto-generated Date: Wed, 24 Jun 2026 16:47:50 +0000 Message-Id: <6a3c0a36.31a1c.a739f98@gitrepo.freebsd.org> The branch main has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=272a12639440c2865fefba8b38771f8dd0ac5778 commit 272a12639440c2865fefba8b38771f8dd0ac5778 Author: Jean-Sébastien Pédron AuthorDate: 2026-05-08 10:09:59 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2026-06-24 16:47:04 +0000 linuxkpi: Define `struct vfsmount` in In the context of the DRM drivers, this is used to show GEM objects in a shmfs virtual filesystem. The new `shmem_file_setup_with_mnt()` - also introduced in this commit as an alias to `shmem_file_setup()` - takes a `struct vfsmount` as its first argument to indicate which shmfs mount should be used. For now, the structure is empty. As we don't present GEM objects in a virtual filesystem right now, we can defer the actual implementation of this structure once we have an actual use for it. The DRM generic code started to use it in Linux 6.13. Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57572 --- sys/compat/linuxkpi/common/include/linux/fs.h | 1 + sys/compat/linuxkpi/common/include/linux/mount.h | 14 ++++++++++++++ sys/compat/linuxkpi/common/include/linux/shmem_fs.h | 5 +++++ sys/compat/linuxkpi/common/src/linux_shmemfs.c | 9 +++++++++ 4 files changed, 29 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/fs.h b/sys/compat/linuxkpi/common/include/linux/fs.h index 749a9fd22d3d..65409bd775cd 100644 --- a/sys/compat/linuxkpi/common/include/linux/fs.h +++ b/sys/compat/linuxkpi/common/include/linux/fs.h @@ -43,6 +43,7 @@ #include #include #include +#include #include struct module; diff --git a/sys/compat/linuxkpi/common/include/linux/mount.h b/sys/compat/linuxkpi/common/include/linux/mount.h new file mode 100644 index 000000000000..f0a2a0a4e295 --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/mount.h @@ -0,0 +1,14 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2026 The FreeBSD Foundation + * Copyright (c) 2026 Jean-Sébastien Pédron + */ + +#ifndef _LINUXKPI_LINUX_MOUNT_H_ +#define _LINUXKPI_LINUX_MOUNT_H_ + +struct vfsmount { +}; + +#endif diff --git a/sys/compat/linuxkpi/common/include/linux/shmem_fs.h b/sys/compat/linuxkpi/common/include/linux/shmem_fs.h index 5e91725d4a1c..1e49d8c73493 100644 --- a/sys/compat/linuxkpi/common/include/linux/shmem_fs.h +++ b/sys/compat/linuxkpi/common/include/linux/shmem_fs.h @@ -39,6 +39,8 @@ struct page *linux_shmem_read_mapping_page_gfp(vm_object_t obj, int pindex, gfp_t gfp); struct linux_file *linux_shmem_file_setup(const char *name, loff_t size, unsigned long flags); +struct linux_file *linux_shmem_file_setup_with_mnt(struct vfsmount *mount, + const char *name, loff_t size, unsigned long flags); void linux_shmem_truncate_range(vm_object_t obj, loff_t lstart, loff_t lend); @@ -51,6 +53,9 @@ void linux_shmem_truncate_range(vm_object_t obj, loff_t lstart, #define shmem_file_setup(...) \ linux_shmem_file_setup(__VA_ARGS__) +#define shmem_file_setup_with_mnt(...) \ + linux_shmem_file_setup_with_mnt(__VA_ARGS__) + #define shmem_truncate_range(...) \ linux_shmem_truncate_range(__VA_ARGS__) diff --git a/sys/compat/linuxkpi/common/src/linux_shmemfs.c b/sys/compat/linuxkpi/common/src/linux_shmemfs.c index d5c118ba7624..e94d6cf8279d 100644 --- a/sys/compat/linuxkpi/common/src/linux_shmemfs.c +++ b/sys/compat/linuxkpi/common/src/linux_shmemfs.c @@ -93,6 +93,15 @@ err_0: return (ERR_PTR(error)); } +struct linux_file * +linux_shmem_file_setup_with_mnt(struct vfsmount *mount, + const char *name, loff_t size, unsigned long flags) +{ + pr_debug("%s: TODO\n", __func__); + + return (linux_shmem_file_setup(name, size, flags)); +} + static vm_ooffset_t linux_invalidate_mapping_pages_sub(vm_object_t obj, vm_pindex_t start, vm_pindex_t end, int flags)