]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ring_buffer: fix comments
authorLai Jiangshan <laijs@cn.fujitsu.com>
Mon, 8 Dec 2008 02:58:08 +0000 (10:58 +0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 8 Dec 2008 12:54:05 +0000 (13:54 +0100)
Impact: comments cleanup

fix incorrect comments for enum ring_buffer_type

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/ring_buffer.h

index 1a350a847edd6b14890caed9e4398c9e3534a1bd..d363467c8f13e31a7c1ff4eaa92ee0dd961d67d6 100644 (file)
@@ -28,17 +28,19 @@ struct ring_buffer_event {
  *                              size = 8 bytes
  *
  * @RINGBUF_TYPE_TIME_STAMP:   Sync time stamp with external clock
- *                              array[0] = tv_nsec
- *                              array[1] = tv_sec
+ *                              array[0]    = tv_nsec
+ *                              array[1..2] = tv_sec
  *                              size = 16 bytes
  *
  * @RINGBUF_TYPE_DATA:         Data record
  *                              If len is zero:
  *                               array[0] holds the actual length
- *                               array[1..(length+3)/4-1] holds data
+ *                               array[1..(length+3)/4] holds data
+ *                               size = 4 + 4 + length (bytes)
  *                              else
  *                               length = len << 2
- *                               array[0..(length+3)/4] holds data
+ *                               array[0..(length+3)/4-1] holds data
+ *                               size = 4 + length (bytes)
  */
 enum ring_buffer_type {
        RINGBUF_TYPE_PADDING,