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 Kookily define si_mem_av...



details:   https://anonhg.NetBSD.org/src/rev/2f36fa916299
branches:  trunk
changeset: 1028085:2f36fa916299
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:49:08 2021 +0000

description:
Kookily define si_mem_available.

diffstat:

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

diffs (24 lines):

diff -r d44329d6c906 -r 2f36fa916299 sys/external/bsd/drm2/include/linux/mm.h
--- a/sys/external/bsd/drm2/include/linux/mm.h  Sun Dec 19 01:49:00 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/mm.h  Sun Dec 19 01:49:08 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mm.h,v 1.15 2021/12/19 01:14:14 riastradh Exp $        */
+/*     $NetBSD: mm.h,v 1.16 2021/12/19 01:49:08 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -66,6 +66,14 @@
        /* XXX Fill in more as needed.  */
 }
 
+static inline size_t
+si_mem_available(void)
+{
+
+       /* XXX ? */
+       return uvmexp.free;
+}
+
 static inline unsigned long
 vm_mmap(struct file *file __unused, unsigned long base __unused,
     unsigned long size __unused, unsigned long prot __unused,



Home | Main Index | Thread Index | Old Index