Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys expose emul_search()
details: https://anonhg.NetBSD.org/src/rev/d04d54cb2bb3
branches: trunk
changeset: 524942:d04d54cb2bb3
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Tue Apr 02 20:18:06 2002 +0000
description:
expose emul_search()
diffstat:
sys/kern/kern_exec.c | 8 ++++----
sys/sys/exec.h | 3 ++-
2 files changed, 6 insertions(+), 5 deletions(-)
diffs (54 lines):
diff -r 5801edca9cc8 -r d04d54cb2bb3 sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c Tue Apr 02 19:58:38 2002 +0000
+++ b/sys/kern/kern_exec.c Tue Apr 02 20:18:06 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exec.c,v 1.150 2002/01/12 14:20:30 christos Exp $ */
+/* $NetBSD: kern_exec.c,v 1.151 2002/04/02 20:18:07 jdolecek Exp $ */
/*-
* Copyright (C) 1993, 1994, 1996 Christopher G. Demetriou
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.150 2002/01/12 14:20:30 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.151 2002/04/02 20:18:07 jdolecek Exp $");
#include "opt_ktrace.h"
#include "opt_syscall_debug.h"
@@ -161,7 +161,6 @@
*/
struct lock exec_lock;
-static const struct emul * emul_search(const char *);
static void link_es(struct execsw_entry **, const struct execsw *);
#endif /* LKM */
@@ -805,8 +804,9 @@
#ifdef LKM
/*
* Find an emulation of given name in list of emulations.
+ * Needs to be called with the exec_lock held.
*/
-static const struct emul *
+const struct emul *
emul_search(const char *name)
{
struct emul_entry *it;
diff -r 5801edca9cc8 -r d04d54cb2bb3 sys/sys/exec.h
--- a/sys/sys/exec.h Tue Apr 02 19:58:38 2002 +0000
+++ b/sys/sys/exec.h Tue Apr 02 20:18:06 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec.h,v 1.84 2002/03/20 18:00:07 christos Exp $ */
+/* $NetBSD: exec.h,v 1.85 2002/04/02 20:18:06 jdolecek Exp $ */
/*-
* Copyright (c) 1994 Christopher G. Demetriou
@@ -200,6 +200,7 @@
#ifdef LKM
int emul_register __P((const struct emul *, int));
int emul_unregister __P((const char *));
+const struct emul *emul_search __P((const char *));
int exec_add __P((struct execsw *, const char *));
int exec_remove __P((const struct execsw *));
Home |
Main Index |
Thread Index |
Old Index