opnsense-src/sys/fs/tmpfs
Dag-Erling Smørgrav 567e6250c0 vfs: Introduce VN_ISDEV() macro
We frequently need to check if a vnode refers to either a character or
block special, so we might as well have a macro for it.

We somewhat less frequently need to perform similar checks on things
that aren't vnodes (usually a struct vattr *), so add VATTR_ISDEV()
and a generic VTYPE_ISDEV() as well.

Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D51947
2025-08-17 19:29:27 +02:00
..
tmpfs.h tmpfs: Rework file handles 2024-12-23 15:46:55 +01:00
tmpfs_fifoops.c sys: Remove $FreeBSD$: two-line .c pattern 2023-08-16 11:54:30 -06:00
tmpfs_fifoops.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
tmpfs_subr.c vfs: Introduce VN_ISDEV() macro 2025-08-17 19:29:27 +02:00
tmpfs_vfsops.c tmpfs: Rework file handles 2024-12-23 15:46:55 +01:00
tmpfs_vnops.c vfs: Introduce VN_ISDEV() macro 2025-08-17 19:29:27 +02:00
tmpfs_vnops.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00