lkml.org 
[lkml]   [2013]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] wfcqueue: add function for unsynchronized prepend
Mathieu Desnoyers <mathieu.desnoyers@efficios.com> wrote:
> * Eric Wong (normalperson@yhbt.net) wrote:
> > In some situations, it is necessary to prepend a node to a queue.
> > For epoll, this is necessary for two rare conditions:
> >
> > * when the user triggers -EFAULT
> > * when reinjecting elements from the ovflist (implemented as a stack)
>
> This approach makes sense.
>
> In terms of API naming, I wonder if "prepend" is the good counterpart
> for "enqueue". Maybe "enqueue_first" or "enqueue_head" could be better
> suited ?

I'm not sure, I'll go with whatever name you decide is best :)

Thanks for looking at my patch, I'll post an updated version
once a name is decided.

--
Eric "isuckatnamingthings" Wong


\
 
 \ /
  Last update: 2013-04-02 23:41    [W:0.044 / U:1.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site