* standard queue implementation?
@ 2001-05-09 15:21 Eli Carter
2001-05-09 18:04 ` george anzinger
0 siblings, 1 reply; 3+ messages in thread
From: Eli Carter @ 2001-05-09 15:21 UTC (permalink / raw)
To: linux-kernel
All,
I did a quick look in include/linux for a standard implementation of an
array-based circular queue, but I didn't see one.
I was thinking something that could be declared, allocated, and then
used with an addq and a removeq. A deallocator would also be good.
Is there such a beast in the kernel? If not, it seems that having
something like this would reduce the potential for bugs.
Thoughts?
Eli
-----------------------. No wonder we didn't get this right first time
Eli Carter | through. It's not really all that horribly
eli.carter(at)inet.com `- complicated, but the _details_ kill you. Linus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: standard queue implementation?
2001-05-09 15:21 standard queue implementation? Eli Carter
@ 2001-05-09 18:04 ` george anzinger
2001-05-09 19:06 ` Eli Carter
0 siblings, 1 reply; 3+ messages in thread
From: george anzinger @ 2001-05-09 18:04 UTC (permalink / raw)
To: Eli Carter; +Cc: linux-kernel
Eli Carter wrote:
>
> All,
>
> I did a quick look in include/linux for a standard implementation of an
> array-based circular queue, but I didn't see one.
>
> I was thinking something that could be declared, allocated, and then
> used with an addq and a removeq. A deallocator would also be good.
>
> Is there such a beast in the kernel? If not, it seems that having
> something like this would reduce the potential for bugs.
>
> Thoughts?
>
Are you possibly looking for include/linux/list.h ?
Routines to build and manager doubly linked circular lists.
George
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: standard queue implementation?
2001-05-09 18:04 ` george anzinger
@ 2001-05-09 19:06 ` Eli Carter
0 siblings, 0 replies; 3+ messages in thread
From: Eli Carter @ 2001-05-09 19:06 UTC (permalink / raw)
To: george anzinger; +Cc: linux-kernel
george anzinger wrote:
>
> Eli Carter wrote:
> >
> > All,
> >
> > I did a quick look in include/linux for a standard implementation of an
> > array-based circular queue, but I didn't see one.
> >
> > I was thinking something that could be declared, allocated, and then
> > used with an addq and a removeq. A deallocator would also be good.
> >
> > Is there such a beast in the kernel? If not, it seems that having
> > something like this would reduce the potential for bugs.
> >
> > Thoughts?
> >
> Are you possibly looking for include/linux/list.h ?
>
> Routines to build and manager doubly linked circular lists.
I've seen that, but no. I want a queue of pointers, and the queue
can/should be of fixed length. (I don't want to deal with
allocating/deallocating nodes for this... I just need something simple.)
For now, I'll just write my own, but I may try submitting it as a
"kernel library" type thing later on.
Thanks,
Eli
-----------------------. No wonder we didn't get this right first time
Eli Carter | through. It's not really all that horribly
eli.carter(at)inet.com `- complicated, but the _details_ kill you. Linus
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-05-09 19:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-09 15:21 standard queue implementation? Eli Carter
2001-05-09 18:04 ` george anzinger
2001-05-09 19:06 ` Eli Carter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox