From 325e13dd1995c87dd0f5eb9a40c783f9121db7cb Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Wed, 11 Nov 1998 12:45:14 +0000 Subject: [PATCH] A kldsym(2) syscall prototype for extracting information from the in-kernel linker. This is intended to replace kvm_mkdb etc. The first version only does name->value lookups, but it's open ended. value->name lookups would probably be a good thing to do too. It's been suggested to try and connect the symbol tables to sysctl (which is probably a more flexible way of doing it if it's done right), but that is far more complex and difficult than I was ready to have a shot at. --- sys/kern/syscalls.master | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index c8d62ccf8da..67723632509 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ - $Id: syscalls.master,v 1.53 1998/08/24 08:29:52 dfr Exp $ + $Id: syscalls.master,v 1.54 1998/11/05 14:28:24 dg Exp $ ; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 ; ; System call name/number master file. @@ -470,3 +470,4 @@ 335 STD BSD { int utrace(caddr_t addr, size_t len); } 336 STD BSD { int sendfile(int fd, int s, off_t offset, size_t nbytes, \ struct sf_hdtr *hdtr, off_t *sbytes, int flags); } +337 STD BSD { int kldsym(int fileid, int cmd, void *data); }