Module Name: src
Committed By: riastradh
Date: Sun Dec 19 01:15:42 UTC 2021
Modified Files:
src/sys/external/bsd/drm2/include/linux: file.h
Log Message:
fget == fd_getfile
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/external/bsd/drm2/include/linux/file.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/include/linux/file.h
diff -u src/sys/external/bsd/drm2/include/linux/file.h:1.3 src/sys/external/bsd/drm2/include/linux/file.h:1.4
--- src/sys/external/bsd/drm2/include/linux/file.h:1.3 Sun Dec 19 00:58:42 2021
+++ src/sys/external/bsd/drm2/include/linux/file.h Sun Dec 19 01:15:42 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: file.h,v 1.3 2021/12/19 00:58:42 riastradh Exp $ */
+/* $NetBSD: file.h,v 1.4 2021/12/19 01:15:42 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -37,6 +37,13 @@
struct file;
+/* fget translates; fput(fp) doesn't because we have fd_putfile(fd). */
+static inline struct file *
+fget(int fd)
+{
+ return fd_getfile(fd);
+}
+
static inline void
fd_install(int fd, struct file *fp)
{