lkml.org 
[lkml]   [2006]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [take25 1/6] kevent: Description.
Evgeniy Polyakov wrote:
> + struct kevent_ring
> + {
> + unsigned int ring_kidx, ring_uidx, ring_over;
> + struct ukevent event[0];
> + }
> + [...]
> +ring_uidx - index of the first entry userspace can start reading from

Do we need this value in the structure? Userlevel cannot and should not
be able to modify it. So, userland has in any case to track the tail
pointer itself. Why then have this value at all?

After kevent_init() the tail pointer is implicitly assumed to be 0.
Since the front pointer (well index) is also zero nothing is available
for reading.

--
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-11-23 00:59    [W:0.085 / U:7.808 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site