include/net/codel_qdisc.h
Source file repositories/reference/linux-study-clean/include/net/codel_qdisc.h
File Facts
- System
- Linux kernel
- Corpus path
include/net/codel_qdisc.h- Extension
.h- Size
- 3024 bytes
- Lines
- 78
- Domain
- Networking Core
- Bucket
- Sockets, Protocols, Packet Path, And Network Policy
- Inferred role
- Networking Core: implementation source
- Status
- source implementation candidate
Why This File Exists
Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
net/codel.hnet/pkt_sched.h
Detected Declarations
struct codel_skb_cbfunction codel_get_enqueue_timefunction codel_set_enqueue_time
Annotated Snippet
struct codel_skb_cb {
codel_time_t enqueue_time;
unsigned int mem_usage;
};
static struct codel_skb_cb *get_codel_cb(const struct sk_buff *skb)
{
qdisc_cb_private_validate(skb, sizeof(struct codel_skb_cb));
return (struct codel_skb_cb *)qdisc_skb_cb(skb)->data;
}
static codel_time_t codel_get_enqueue_time(const struct sk_buff *skb)
{
return get_codel_cb(skb)->enqueue_time;
}
static void codel_set_enqueue_time(struct sk_buff *skb)
{
get_codel_cb(skb)->enqueue_time = codel_get_time();
}
#endif
Annotation
- Immediate include surface: `net/codel.h`, `net/pkt_sched.h`.
- Detected declarations: `struct codel_skb_cb`, `function codel_get_enqueue_time`, `function codel_set_enqueue_time`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.