From owner-freebsd-hackers Tue Oct 6 11:30:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA12284 for freebsd-hackers-outgoing; Tue, 6 Oct 1998 11:30:59 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA12268 for ; Tue, 6 Oct 1998 11:30:42 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id LAA00391; Tue, 6 Oct 1998 11:34:43 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810061834.LAA00391@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Luigi Rizzo cc: hackers@FreeBSD.ORG Subject: Re: sysctl for string arguments ? In-reply-to: Your message of "Tue, 06 Oct 1998 16:50:06 BST." <199810061550.QAA06801@labinfo.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 06 Oct 1998 11:34:43 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi, > > can someone point me to some code which is already in the kernel and > can handle sysctl for R/W string arguments ? > > I see there is sysctl_handle_string but i am totally unclear on how to > make it works, and a few attempts just resulted in panics. Furthermore > i cannot find a single place where this is used! > > other strings in sysctl args seem not to be R/W (or at least, > not settable with the "sysctl" command... e.g. kern.hostname and the > like). kern.corefile in kern_sig.c. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message