include/net/rps-types.h
Source file repositories/reference/linux-study-clean/include/net/rps-types.h
File Facts
- System
- Linux kernel
- Corpus path
include/net/rps-types.h- Extension
.h- Size
- 548 bytes
- Lines
- 25
- 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.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
function rps_tag_to_logfunction rps_tag_to_mask
Annotated Snippet
#ifndef _NET_RPS_TYPES_H
#define _NET_RPS_TYPES_H
/* Define a rps_tag_ptr:
* Low order 5 bits are used to store the ilog2(size) of an RPS table.
*/
typedef unsigned long rps_tag_ptr;
static inline u8 rps_tag_to_log(rps_tag_ptr tag_ptr)
{
return tag_ptr & 31U;
}
static inline u32 rps_tag_to_mask(rps_tag_ptr tag_ptr)
{
return (1U << rps_tag_to_log(tag_ptr)) - 1;
}
static inline void *rps_tag_to_table(rps_tag_ptr tag_ptr)
{
return (void *)(tag_ptr & ~31UL);
}
#endif /* _NET_RPS_TYPES_H */
Annotation
- Detected declarations: `function rps_tag_to_log`, `function rps_tag_to_mask`.
- 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.