Mechanism for Enqueue and Dequeue?

Deadly Earnest
Tue, 22 Mar 2005 16:07:05 -0000

I''ve been reading the Linux Advanced Routing & Traffic Control
Howto and it''s well put together but I''ve a few questions
about the mechanism.

I dont'' think that I''d have any questions if I just wanted to
know how to configure the Shaping method but I''m trying to get into the
nuts and bolts.

Basically I''m trying to find out the mechanism of the Enqueue and
Dequeue operations. The utility tc which is used to configure the queues is
external to the Kernel so it doesn''t configure the Kernel. I assume it
just configures the tables that the Kernel uses. When the Kernel what''s
to Queue something does it ask another process to do that? And similarly does it
ask an external process to Dequeue a packet for transmission?

What is the mechanism or interface?

For example if you change the queueing method you don''t have to change
the whole Kernel and recompile it so there is an external interface I assume.

The HOWTO states in section 9.5.2.1. that ''Packets get enqueued and
dequeued at the root qdisc, which is the ony thing that the kernel talks
to''. How does it talk to the qdisc? Could I write my own Queue?

This may not be the form for this question in which case sorry for the noise.

Thanks for any help


_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl