Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 1999 08:38:06 +0000 (GMT)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Dan Seguin <dseg@texar.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: KLD
Message-ID:  <Pine.BSF.4.05.9903110837080.27198-100000@herring.nlsystems.com>
In-Reply-To: <Pine.BSF.3.91.990310172459.27013A-100000@pak.texar.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9903110837080.27198-100000>