net/sched/sch_fifo.c
Source file repositories/reference/linux-study-clean/net/sched/sch_fifo.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/sch_fifo.c- Extension
.c- Size
- 6369 bytes
- Lines
- 277
- Domain
- Networking Core
- Bucket
- Sockets, Protocols, Packet Path, And Network Policy
- Inferred role
- Networking Core: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/slab.hlinux/types.hlinux/kernel.hlinux/errno.hlinux/skbuff.hnet/pkt_sched.hnet/pkt_cls.h
Detected Declarations
function bfifo_enqueuefunction pfifo_enqueuefunction pfifo_tail_enqueuefunction fifo_offload_initfunction fifo_offload_destroyfunction fifo_offload_dumpfunction __fifo_initfunction fifo_initfunction fifo_hd_initfunction fifo_destroyfunction __fifo_dumpfunction fifo_dumpfunction fifo_hd_dumpfunction fifo_set_limitexport pfifo_qdisc_opsexport bfifo_qdisc_opsexport fifo_set_limitexport fifo_create_dflt
Annotated Snippet
if (err < 0) {
qdisc_put(q);
q = NULL;
}
}
return q ? : ERR_PTR(err);
}
EXPORT_SYMBOL(fifo_create_dflt);
MODULE_DESCRIPTION("Single queue packet and byte based First In First Out(P/BFIFO) scheduler");
Annotation
- Immediate include surface: `linux/module.h`, `linux/slab.h`, `linux/types.h`, `linux/kernel.h`, `linux/errno.h`, `linux/skbuff.h`, `net/pkt_sched.h`, `net/pkt_cls.h`.
- Detected declarations: `function bfifo_enqueue`, `function pfifo_enqueue`, `function pfifo_tail_enqueue`, `function fifo_offload_init`, `function fifo_offload_destroy`, `function fifo_offload_dump`, `function __fifo_init`, `function fifo_init`, `function fifo_hd_init`, `function fifo_destroy`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration 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.