From owner-freebsd-hackers Thu Mar 11 0:37:24 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id 651FF15106 for ; Thu, 11 Mar 1999 00:37:13 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id IAA29654; Thu, 11 Mar 1999 08:38:06 GMT (envelope-from dfr@nlsystems.com) Date: Thu, 11 Mar 1999 08:38:06 +0000 (GMT) From: Doug Rabson To: Dan Seguin Cc: freebsd-hackers@freebsd.org Subject: Re: KLD In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 10 Mar 1999, Dan Seguin wrote: > > > On Wed, 10 Mar 1999, Doug Rabson wrote: > > > > I've got two questions: > > > > > > 1. Is there a way of creating more than one syscall in the same KLD? Is > > > syscall_register() all one needs to do? If not, what kind of hand waving > > > is necessary with SYSCALL_MODULE, DECLARE_MODULE, SYSINIT, DATASET? > > > > Just have more than one SYSCALL_MODULE statement. > > > > It was the first thing I tried. Then looked around in the code, found out > how the module is recorded: it has a unique name. I've included the > example source file I'm using and the make message. > > ... > > SYSCALL_MODULE(syscall, &offset, &hello_sysent, load, NULL); > > SYSCALL_MODULE(syscall, &offset2, &hello_sysent2, NULL, NULL); Try using a different name for the second entry (i.e. syscall2). -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message