svn commit: r190686 - user/lstewart/alq_varlen_8.x/sys/sys
Lawrence Stewart
lstewart at FreeBSD.org
Fri Apr 3 21:46:33 PDT 2009
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:
More information about the svn-src-user
mailing list