Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpkern rumpkern: Provide stub pnbuf_cache...



details:   https://anonhg.NetBSD.org/src/rev/fde29dce6bbd
branches:  trunk
changeset: 374418:fde29dce6bbd
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Apr 22 13:53:44 2023 +0000

description:
rumpkern: Provide stub pnbuf_cache weak alias.

Needed only by sys_module.c handle_modctl_load, which won't work if
there's no rumpvfs linked in anyway.

diffstat:

 sys/rump/librump/rumpkern/emul.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 18cb7a1ef60a -r fde29dce6bbd sys/rump/librump/rumpkern/emul.c
--- a/sys/rump/librump/rumpkern/emul.c  Sat Apr 22 13:53:37 2023 +0000
+++ b/sys/rump/librump/rumpkern/emul.c  Sat Apr 22 13:53:44 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: emul.c,v 1.198 2023/04/22 13:53:29 riastradh Exp $     */
+/*     $NetBSD: emul.c,v 1.199 2023/04/22 13:53:44 riastradh Exp $     */
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.198 2023/04/22 13:53:29 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.199 2023/04/22 13:53:44 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/cprng.h>
@@ -337,6 +337,9 @@ struct filterops rump_fs_filtops = {
 };
 __weak_alias(fs_filtops,rump_fs_filtops);
 
+struct pool_cache *rump_pnbuf_cache;
+__weak_alias(pnbuf_cache,rump_pnbuf_cache);
+
 /*
  * Provide weak aliases for tty routines used by printf.
  * They will be used unless the rumpkern_tty component is present.



Home | Main Index | Thread Index | Old Index