Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Apr 2009 04:46:32 +0000 (UTC)
From:      Lawrence Stewart <lstewart@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r190686 - user/lstewart/alq_varlen_8.x/sys/sys
Message-ID:  <200904040446.n344kWEa053036@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904040446.n344kWEa053036>