include/net/tc_act/tc_csum.h
Source file repositories/reference/linux-study-clean/include/net/tc_act/tc_csum.h
File Facts
- System
- Linux kernel
- Corpus path
include/net/tc_act/tc_csum.h- Extension
.h- Size
- 643 bytes
- Lines
- 34
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.hnet/act_api.hlinux/tc_act/tc_csum.h
Detected Declarations
struct tcf_csum_paramsstruct tcf_csumfunction tcf_csum_update_flags
Annotated Snippet
struct tcf_csum_params {
u32 update_flags;
int action;
struct rcu_head rcu;
};
struct tcf_csum {
struct tc_action common;
struct tcf_csum_params __rcu *params;
};
#define to_tcf_csum(a) ((struct tcf_csum *)a)
static inline u32 tcf_csum_update_flags(const struct tc_action *a)
{
u32 update_flags;
rcu_read_lock();
update_flags = rcu_dereference(to_tcf_csum(a)->params)->update_flags;
rcu_read_unlock();
return update_flags;
}
#endif /* __NET_TC_CSUM_H */
Annotation
- Immediate include surface: `linux/types.h`, `net/act_api.h`, `linux/tc_act/tc_csum.h`.
- Detected declarations: `struct tcf_csum_params`, `struct tcf_csum`, `function tcf_csum_update_flags`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: source 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.