From nobody Wed Jun 24 16:47:50 2026 X-Original-To: dev-commits-src-main@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 4glntH15vVz6jTRn for ; Wed, 24 Jun 2026 16:47:51 +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 4glntH0W6Mz3MfM for ; Wed, 24 Jun 2026 16:47:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782319671; 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=X9z33mZ335NbdRkD/kIAzA1DobBK2etwhfwTG3lbpeI73YZLbWeNnrENK7+kvz+udAa5mc PQlKjvygwhiW13bVCjsuyeVM2YYCrwNJBw6XYEBiUE6WmPtkK6jv9w+TBaPer5qI+Bnr5h d0+Eihv2PArjJ28idO8KZ9WdeHmpRCP2BopRxqnetYxLg/f4JIhIjKnvJawt0Q/kbAr+UL oIGXlwTYFn0TLLutNVBcUykDIVmmnNlVLQyN7HL3ezz0JUuVSmx6b1rquMXzDhB8Xs72AO 4PcF+xxXoMRB+pZnJXWhnq9dbc4fbfAlwNSAp5CuXs78LqlamQL5GF6X1sUK7A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782319671; a=rsa-sha256; cv=none; b=LhAbQ1qLkt7Pumw7PV4U1DwYQkya6KjE0V7GHovOTyENs0+7nfJXZAbROWTNKaE4GUvye4 8Ew7WTClGWWQTcipvDdGB5Xfi4nAjX35pZzY0IPRNopLmah8ew3TmuZcQMysSZSxfRcHvp EKC0MRzU3kpOgwwR5xE5qnz6IcYHcrurhdgT5PAUQAKeyA4lMK3LRXcb6aCosicntZRvtC EzZCf8OKJ5VhSGBcDNuGPRiAcCbTE0cxjwklsF0XEYaaITFKD07zzXkpkAWtR66rvrFy7v 435FfhoRSUGrz6e/AI3r5kwoykfn6vuwSlumCJHHXSTog6OeHc+nrLJmUBegrQ== 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=1782319671; 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=PPRpS46xqFwRauIN4fKr/IYBaJJ4duEbWgBq6Zz8PfjtXjA3X08Ytwg6K2JgdQfL1u1imB yvT40TsA/yQYacU1A+vNAGebrdiIXB+U/tu+JEdlP4rnFL0EWhhgDutr6CBDt/jM1YibWJ 04rGrW18He1YRJVMpmTqyfKrVhruab+lXcGmG3RmUMwdjDPRCPoodnBpWz8df1a4jDfgHg ntR37kkzK5Oy86JX0O3h/6ImPSINVOWZGQ9C5+J9ASh2mjAlaCKEgIXu4Z5WbWTIDOcBdx ttM5IH332idM2upEAYqsjngyhX/y4m/SOXWIYoTUDJjjjq09uN3mmYc9mGi0VQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4glntG59ZczCnH for ; Wed, 24 Jun 2026 16:47:50 +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 the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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)