Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 1999 22:10:16 +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.9903102207170.27198-100000@herring.nlsystems.com>
In-Reply-To: <Pine.BSF.3.91.990310151648.26859B-100000@pak.texar.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 10 Mar 1999, Dan Seguin wrote:

> 
> Hi all, 
> 
> 
> 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.

> 
> 2.  Is it possible to replace a syscall with a new one but still call the 
> old one?

The old contents of the syscall table are saved in the struct
syscall_module_data in the old_sysent field.  If you declare a syscall
with:

	SYSCALL_MODULE(foo, off, &my_sysent, 0, 0);

then the old sysent is in foo_syscall_mod.old_sysent.

--
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.9903102207170.27198-100000>