From owner-freebsd-current Wed Oct 9 5:17:50 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9DC337B401; Wed, 9 Oct 2002 05:17:49 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7607743E3B; Wed, 9 Oct 2002 05:17:48 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id WAA23362; Wed, 9 Oct 2002 22:17:46 +1000 Date: Wed, 9 Oct 2002 22:27:51 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Maxime Henrion Cc: "Vladimir B. Grebenschikov" , Subject: Re: DDB sysctl function In-Reply-To: <20021009094616.GP57622@elvis.mu.org> Message-ID: <20021009222321.I4967-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 9 Oct 2002, Maxime Henrion wrote: > What I meant in my previous mail is that you could malloc() these > objects instead of putting them on the stack. Also, you don't need > buffers that big since the size you need is bounded at max(sizeof(int), > TOK_STRING_SIZE), which is likely to be TOK_STRING_SIZE :-). ddb can't call malloc() or any other general memory allocation function, since it may be (and often is) invoked in the middle of such functions. ruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message