include/asm-generic/bitops/__bitrev.h
Source file repositories/reference/linux-study-clean/include/asm-generic/bitops/__bitrev.h
File Facts
- System
- Linux kernel
- Corpus path
include/asm-generic/bitops/__bitrev.h- Extension
.h- Size
- 640 bytes
- Lines
- 24
- Domain
- Repository Root And Misc
- Bucket
- include
- Inferred role
- Repository Root And Misc: implementation source
- Status
- source implementation candidate
Why This File Exists
Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
Dependency Surface
asm/types.h
Detected Declarations
function generic___bitrev8function generic___bitrev16function generic___bitrev32
Annotated Snippet
#ifndef _ASM_GENERIC_BITOPS___BITREV_H_
#define _ASM_GENERIC_BITOPS___BITREV_H_
#include <asm/types.h>
extern u8 const byte_rev_table[256];
static __always_inline __attribute_const__ u8 generic___bitrev8(u8 byte)
{
return byte_rev_table[byte];
}
static __always_inline __attribute_const__ u16 generic___bitrev16(u16 x)
{
return (generic___bitrev8(x & 0xff) << 8) | generic___bitrev8(x >> 8);
}
static __always_inline __attribute_const__ u32 generic___bitrev32(u32 x)
{
return (generic___bitrev16(x & 0xffff) << 16) | generic___bitrev16(x >> 16);
}
#endif /* _ASM_GENERIC_BITOPS___BITREV_H_ */
Annotation
- Immediate include surface: `asm/types.h`.
- Detected declarations: `function generic___bitrev8`, `function generic___bitrev16`, `function generic___bitrev32`.
- Atlas domain: Repository Root And Misc / include.
- 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.