From owner-freebsd-hackers Fri Feb 12 07:06:51 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA23885 for freebsd-hackers-outgoing; Fri, 12 Feb 1999 07:06:51 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from excalibur.oceanis.net (ns.dotcom.fr [194.133.21.11]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA23873 for ; Fri, 12 Feb 1999 07:06:41 -0800 (PST) (envelope-from pixel@excalibur.oceanis.net) Received: (from pixel@localhost) by excalibur.oceanis.net (8.9.1/8.9.1) id PAA08837; Fri, 12 Feb 1999 15:06:20 GMT From: Emmanuel DELOGET Message-Id: <199902121506.PAA08837@excalibur.oceanis.net> Subject: Re: TEXT_SET() macro In-Reply-To: from Dag-Erling Smorgrav at "Feb 12, 1999 3:47:20 pm" To: des@flood.ping.uio.no (Dag-Erling Smorgrav) Date: Fri, 12 Feb 1999 16:06:19 +0100 (MET) Cc: hackers@FreeBSD.ORG (FreeBSD Hackers Mail List) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG As the well known Dag-Erling Smorgrav said... ->Emmanuel DELOGET writes: ->> I wanna know how it's working both at compile time and at run time ->> (for example, does a lkm (yes lkm, not kld, since I'm working on a ->> 2.2.8 release...) can declare linker_sets, or add entries in a kernel ->> linker_set, [for example , the sysctl_ one - seems that I'm very ->> interested in sysctls :)]. Thaks a lot. -> -> Yes. -> -> You shouldn't be working on 2.2.8 - the 2.2 branch is dead now. Save -> yourself a lot of trouble and go to 3.1. -> Helas ! It seems that the 3.1 branch (as said my chief, I have no time to verify) is too far from NetBSD, and I'll have to port may work to NetBSD soon ! So I work on a 2.2.8... (well, I don't know if I will be able to put that stuff in NetBSD, but I'll try !) The goal is to add a kernelized SNMP support, in fact, both to FreeBSD and NetBSD. I'll certainly do that for -current later. -> For linker set examples, look up the definition of the DECLARE_MODULE -> macro to see how they are declared and read the kldload code to see -> how they are used. Use e.g. Oups... Does that mean no linux ? ;) -> -> You can declare sysctls in modules, but the sysctl code will not pick -> them up so it's pretty useless. There is work pending to make that -> possible. -> This seems that the sysctl_order function is called only on the system init (due to SYSINIT), but it may be possible to find a workaroud (I'm working on this for 2.2.8, on the base of the D. Rabson patch for -current). -> DES ->-- -> Dag-Erling Smorgrav - des@flood.ping.uio.no Thaks a lot. -- ____________________________________________________________________ Emmanuel DELOGET [pixel] pixel@{dotcom.fr,epita.fr} ---- DotCom SA -------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message