net/netfilter/xt_IDLETIMER.c
Source file repositories/reference/linux-study-clean/net/netfilter/xt_IDLETIMER.c
File Facts
- System
- Linux kernel
- Corpus path
net/netfilter/xt_IDLETIMER.c- Extension
.c- Size
- 14533 bytes
- Lines
- 584
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/timer.hlinux/alarmtimer.hlinux/list.hlinux/mutex.hlinux/netfilter.hlinux/netfilter/x_tables.hlinux/netfilter/xt_IDLETIMER.hlinux/kdev_t.hlinux/kobject.hlinux/workqueue.hlinux/sysfs.h
Detected Declarations
struct idletimer_tgfunction list_for_each_entryfunction idletimer_tg_showfunction idletimer_tg_workfunction idletimer_tg_expiredfunction idletimer_tg_alarmprocfunction idletimer_start_alarm_ktimefunction idletimer_start_alarm_secfunction idletimer_check_sysfs_namefunction idletimer_tg_createfunction idletimer_tg_create_v1function idletimer_tg_targetfunction idletimer_tg_target_v1function idletimer_tg_helperfunction strnlenfunction idletimer_tg_checkentryfunction idletimer_tg_checkentry_v1function idletimer_tg_destroyfunction idletimer_tg_destroy_v1function idletimer_tg_initfunction idletimer_tg_exitmodule init idletimer_tg_init
Annotated Snippet
module_init(idletimer_tg_init);
module_exit(idletimer_tg_exit);
MODULE_AUTHOR("Timo Teras <ext-timo.teras@nokia.com>");
MODULE_AUTHOR("Luciano Coelho <luciano.coelho@nokia.com>");
MODULE_DESCRIPTION("Xtables: idle time monitor");
MODULE_LICENSE("GPL v2");
MODULE_ALIAS("ipt_IDLETIMER");
MODULE_ALIAS("ip6t_IDLETIMER");
Annotation
- Immediate include surface: `linux/module.h`, `linux/timer.h`, `linux/alarmtimer.h`, `linux/list.h`, `linux/mutex.h`, `linux/netfilter.h`, `linux/netfilter/x_tables.h`, `linux/netfilter/xt_IDLETIMER.h`.
- Detected declarations: `struct idletimer_tg`, `function list_for_each_entry`, `function idletimer_tg_show`, `function idletimer_tg_work`, `function idletimer_tg_expired`, `function idletimer_tg_alarmproc`, `function idletimer_start_alarm_ktime`, `function idletimer_start_alarm_sec`, `function idletimer_check_sysfs_name`, `function idletimer_tg_create`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.