HomeFreeBSD

linuxkpi: Define `struct vfsmount` in <linux/mount.h>

Description

linuxkpi: Define struct vfsmount in <linux/mount.h>

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

Details

Provenance
dumbbellAuthored on May 8 2026, 10:09 AM
Reviewer
emaste
Differential Revision
D57572: linuxkpi: Define `struct vfsmount` in <linux/mount.h>
Parents
rG682f135f5de3: qat: driver updates to enhance qat infrastructure
Branches
Unknown
Tags
Unknown