Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/linux fget == fd_getfile



details:   https://anonhg.NetBSD.org/src/rev/07bd1130891d
branches:  trunk
changeset: 1027913:07bd1130891d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:15:42 2021 +0000

description:
fget == fd_getfile

diffstat:

 sys/external/bsd/drm2/include/linux/file.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 950367999879 -r 07bd1130891d sys/external/bsd/drm2/include/linux/file.h
--- a/sys/external/bsd/drm2/include/linux/file.h        Sun Dec 19 01:15:35 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/file.h        Sun Dec 19 01:15:42 2021 +0000
@@ -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)
 {



Home | Main Index | Thread Index | Old Index