Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm uvm_extern.h is has both a _KERNEL only, and a non _...



details:   https://anonhg.NetBSD.org/src/rev/47342144b86c
branches:  trunk
changeset: 819962:47342144b86c
user:      cherry <cherry%NetBSD.org@localhost>
date:      Sat Dec 24 19:21:29 2016 +0000

description:
uvm_extern.h is has both a _KERNEL only, and a non _KERNEL only API.

Since we unconditionally expose the uvm_physseg.h API via uvm_extern.h
right now, and since uvm_physseg.h uses a kernel only datatype, viz
psize_t, we restrict exposure of uvm_physseg.h API exposure to kernel
only.

This is in conformance of its documentation via uvm_hotplug(9) as a
kernel internal API.

diffstat:

 sys/uvm/uvm_extern.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 93ae30d22c51 -r 47342144b86c sys/uvm/uvm_extern.h
--- a/sys/uvm/uvm_extern.h      Sat Dec 24 19:02:16 2016 +0000
+++ b/sys/uvm/uvm_extern.h      Sat Dec 24 19:21:29 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_extern.h,v 1.200 2016/12/22 13:26:24 cherry Exp $  */
+/*     $NetBSD: uvm_extern.h,v 1.201 2016/12/24 19:21:29 cherry Exp $  */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -472,7 +472,6 @@
 #if defined(_KERNEL) || defined(_KMEMUSER)
 #include <uvm/uvm_map.h>
 #include <uvm/uvm_pager.h>
-#endif
 
 /*
  * Include the uvm_hotplug(9) API unconditionally until
@@ -481,6 +480,7 @@
  * After this, MD code will have to explicitly include it if needed.
  */
 #include <uvm/uvm_physseg.h> 
+#endif
 
 /*
  * helpers for calling ubc_release()



Home | Main Index | Thread Index | Old Index