Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys - move export for devmon_insert_vec into sys/device.h.
details: https://anonhg.NetBSD.org/src/rev/af90e5d38aa6
branches: trunk
changeset: 993564:af90e5d38aa6
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Sep 18 01:25:09 2018 +0000
description:
- move export for devmon_insert_vec into sys/device.h.
- export root_is_mounted for future USB RB_ASKNAME hack.
- make some things in subr_autoconf.c static
- move device_printf() prototype out from the middle of two sets of
aprint_*() prototypes.
diffstat:
sys/kern/kern_drvctl.c | 5 ++---
sys/kern/subr_autoconf.c | 16 ++++++++--------
sys/sys/device.h | 4 +++-
sys/sys/systm.h | 6 +++---
4 files changed, 16 insertions(+), 15 deletions(-)
diffs (119 lines):
diff -r 8c7c70c15609 -r af90e5d38aa6 sys/kern/kern_drvctl.c
--- a/sys/kern/kern_drvctl.c Mon Sep 17 20:25:49 2018 +0000
+++ b/sys/kern/kern_drvctl.c Tue Sep 18 01:25:09 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_drvctl.c,v 1.43 2017/11/30 20:25:55 christos Exp $ */
+/* $NetBSD: kern_drvctl.c,v 1.44 2018/09/18 01:25:09 mrg Exp $ */
/*
* Copyright (c) 2004
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_drvctl.c,v 1.43 2017/11/30 20:25:55 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_drvctl.c,v 1.44 2018/09/18 01:25:09 mrg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -107,7 +107,6 @@
#define MAXLOCATORS 100
-extern int (*devmon_insert_vec)(const char *, prop_dictionary_t);
static int (*saved_insert_vec)(const char *, prop_dictionary_t) = NULL;
static int drvctl_command(struct lwp *, struct plistref *, u_long, int);
diff -r 8c7c70c15609 -r af90e5d38aa6 sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c Mon Sep 17 20:25:49 2018 +0000
+++ b/sys/kern/subr_autoconf.c Tue Sep 18 01:25:09 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.262 2018/06/26 06:03:57 thorpej Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.263 2018/09/18 01:25:09 mrg Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.262 2018/06/26 06:03:57 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.263 2018/09/18 01:25:09 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -192,17 +192,17 @@
TAILQ_HEAD(deferred_config_head, deferred_config);
-struct deferred_config_head deferred_config_queue =
+static struct deferred_config_head deferred_config_queue =
TAILQ_HEAD_INITIALIZER(deferred_config_queue);
-struct deferred_config_head interrupt_config_queue =
+static struct deferred_config_head interrupt_config_queue =
TAILQ_HEAD_INITIALIZER(interrupt_config_queue);
-int interrupt_config_threads = 8;
-struct deferred_config_head mountroot_config_queue =
+static int interrupt_config_threads = 8;
+static struct deferred_config_head mountroot_config_queue =
TAILQ_HEAD_INITIALIZER(mountroot_config_queue);
-int mountroot_config_threads = 2;
+static int mountroot_config_threads = 2;
static lwp_t **mountroot_config_lwpids;
static size_t mountroot_config_lwpids_size;
-static bool root_is_mounted = false;
+bool root_is_mounted = false;
static void config_process_deferred(struct deferred_config_head *, device_t);
diff -r 8c7c70c15609 -r af90e5d38aa6 sys/sys/device.h
--- a/sys/sys/device.h Mon Sep 17 20:25:49 2018 +0000
+++ b/sys/sys/device.h Tue Sep 18 01:25:09 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: device.h,v 1.155 2018/06/26 06:03:57 thorpej Exp $ */
+/* $NetBSD: device.h,v 1.156 2018/09/18 01:25:09 mrg Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -427,6 +427,7 @@
extern daddr_t booted_startblk; /* or the start of a wedge */
extern uint64_t booted_nblks; /* and the size of that wedge */
extern char *bootspec; /* and the device/wedge name */
+extern bool root_is_mounted; /* true if root is mounted */
struct vnode *opendisk(device_t);
int getdisksize(struct vnode *, uint64_t *, unsigned int *);
@@ -441,6 +442,7 @@
void config_init_mi(void);
void drvctl_init(void);
void drvctl_fini(void);
+extern int (*devmon_insert_vec)(const char *, prop_dictionary_t);
int config_cfdriver_attach(struct cfdriver *);
int config_cfdriver_detach(struct cfdriver *);
diff -r 8c7c70c15609 -r af90e5d38aa6 sys/sys/systm.h
--- a/sys/sys/systm.h Mon Sep 17 20:25:49 2018 +0000
+++ b/sys/sys/systm.h Tue Sep 18 01:25:09 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: systm.h,v 1.277 2018/08/10 21:44:59 pgoyette Exp $ */
+/* $NetBSD: systm.h,v 1.278 2018/09/18 01:25:09 mrg Exp $ */
/*-
* Copyright (c) 1982, 1988, 1991, 1993
@@ -196,14 +196,14 @@
void aprint_verbose(const char *, ...) __printflike(1, 2);
void aprint_debug(const char *, ...) __printflike(1, 2);
-void device_printf(device_t, const char *fmt, ...) __printflike(2, 3);
-
void aprint_normal_dev(device_t, const char *, ...) __printflike(2, 3);
void aprint_error_dev(device_t, const char *, ...) __printflike(2, 3);
void aprint_naive_dev(device_t, const char *, ...) __printflike(2, 3);
void aprint_verbose_dev(device_t, const char *, ...) __printflike(2, 3);
void aprint_debug_dev(device_t, const char *, ...) __printflike(2, 3);
+void device_printf(device_t, const char *fmt, ...) __printflike(2, 3);
+
struct ifnet;
void aprint_normal_ifnet(struct ifnet *, const char *, ...)
Home |
Main Index |
Thread Index |
Old Index