arch/s390/include/asm/rwonce.h
Source file repositories/reference/linux-study-clean/arch/s390/include/asm/rwonce.h
File Facts
- System
- Linux kernel
- Corpus path
arch/s390/include/asm/rwonce.h- Extension
.h- Size
- 689 bytes
- Lines
- 32
- Domain
- Architecture Layer
- Bucket
- arch/s390
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
Dependency Surface
linux/compiler_types.hasm-generic/rwonce.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#ifndef __ASM_S390_RWONCE_H
#define __ASM_S390_RWONCE_H
#include <linux/compiler_types.h>
/*
* Use READ_ONCE_ALIGNED_128() for 128-bit block concurrent (atomic) read
* accesses. Note that x must be 128-bit aligned, otherwise a specification
* exception is generated.
*/
#define READ_ONCE_ALIGNED_128(x) \
({ \
union { \
typeof(x) __x; \
__uint128_t val; \
} __u; \
\
BUILD_BUG_ON(sizeof(x) != 16); \
asm volatile( \
" lpq %[val],%[_x]" \
: [val] "=d" (__u.val) \
: [_x] "QS" (x) \
: "memory"); \
__u.__x; \
})
#include <asm-generic/rwonce.h>
#endif /* __ASM_S390_RWONCE_H */
Annotation
- Immediate include surface: `linux/compiler_types.h`, `asm-generic/rwonce.h`.
- Atlas domain: Architecture Layer / arch/s390.
- 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.