From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 22 07:22:32 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32F8F1065670 for ; Sun, 22 Feb 2009 07:22:32 +0000 (UTC) (envelope-from gerryw@compvia.com) Received: from omr4.networksolutionsemail.com (omr4.networksolutionsemail.com [205.178.146.54]) by mx1.freebsd.org (Postfix) with ESMTP id E98398FC12 for ; Sun, 22 Feb 2009 07:22:31 +0000 (UTC) (envelope-from gerryw@compvia.com) Received: from mail.networksolutionsemail.com (ns-omr4.mgt.netsol.com [10.49.6.67]) by omr4.networksolutionsemail.com (8.13.6/8.13.6) with SMTP id n1M7MUr2003512 for ; Sun, 22 Feb 2009 02:22:31 -0500 Received: (qmail 28647 invoked by uid 78); 22 Feb 2009 07:22:30 -0000 Received: from unknown (HELO ?10.10.20.102?) (sales@compvia.com@72.177.99.161) by ns-omr4.lb.hosting.dc2.netsol.com with SMTP; 22 Feb 2009 07:22:30 -0000 Message-Id: <0C6BEA08-70DC-451D-AA87-885748574100@compvia.com> From: Gerry Weaver To: freebsd-hackers@freebsd.org In-Reply-To: <8AC3EBEC-71C1-4E29-9E20-680AF49626BF@compvia.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Sun, 22 Feb 2009 01:22:29 -0600 References: <8AC3EBEC-71C1-4E29-9E20-680AF49626BF@compvia.com> X-Mailer: Apple Mail (2.930.3) Subject: Re: variable args in kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2009 07:22:32 -0000 Hello All, Solved. I found machine/stdarg.h. Thanks, Gerry On Feb 21, 2009, at 6:34 PM, Gerry Weaver wrote: > Hello All, > > How does one make use of variable arguments in a kernel module? It > seems doable ala printf etc. I want to front end sprintf to > calculate buffer size. I've been looking through the source tree, > but no luck as of yet. > > Thanks, > Gerry > > > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org > " >