From owner-svn-src-user@FreeBSD.ORG Sat Apr 4 04:46:33 2009 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17583106566C; Sat, 4 Apr 2009 04:46:33 +0000 (UTC) (envelope-from lstewart@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 056B88FC12; Sat, 4 Apr 2009 04:46:33 +0000 (UTC) (envelope-from lstewart@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n344kW1S053037; Sat, 4 Apr 2009 04:46:32 GMT (envelope-from lstewart@svn.freebsd.org) Received: (from lstewart@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n344kWEa053036; Sat, 4 Apr 2009 04:46:32 GMT (envelope-from lstewart@svn.freebsd.org) Message-Id: <200904040446.n344kWEa053036@svn.freebsd.org> From: Lawrence Stewart Date: Sat, 4 Apr 2009 04:46:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r190686 - user/lstewart/alq_varlen_8.x/sys/sys X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Apr 2009 04:46:33 -0000 Author: lstewart Date: Sat Apr 4 04:46:32 2009 New Revision: 190686 URL: http://svn.freebsd.org/changeset/base/190686 Log: Remove redundant cruft from alq.h and document overloaded meaning of the size parameter for alq_open. Modified: user/lstewart/alq_varlen_8.x/sys/sys/alq.h Modified: user/lstewart/alq_varlen_8.x/sys/sys/alq.h ============================================================================== --- user/lstewart/alq_varlen_8.x/sys/sys/alq.h Sat Apr 4 04:28:01 2009 (r190685) +++ user/lstewart/alq_varlen_8.x/sys/sys/alq.h Sat Apr 4 04:46:32 2009 (r190686) @@ -42,14 +42,10 @@ extern struct thread *ald_thread; * Async. Logging Entry */ struct ale { - //struct ale *ae_next; /* Next Entry */ char *ae_data; /* Entry buffer */ int ae_datalen; /* Length of buffer */ - //int ae_flags; /* Entry flags */ }; -//#define AE_VALID 0x0001 /* Entry has valid data */ - /* flags options */ #define ALQ_NOWAIT 0x0001 #define ALQ_WAITOK 0x0002 @@ -66,7 +62,8 @@ struct ale { * file The filename to open for logging. * cred Credential to authorize open and I/O with. * cmode Creation mode for file, if new. - * size The size of each entry in the queue. + * size The size of each entry in the queue, or the size of the queue + * itself in bytes if count=0 (variable length queues). * count The number of items in the buffer, this should be large enough * to store items over the period of a disk write. * Returns: