include/asm-generic/bitops.h
Source file repositories/reference/linux-study-clean/include/asm-generic/bitops.h
File Facts
- System
- Linux kernel
- Corpus path
include/asm-generic/bitops.h- Extension
.h- Size
- 1160 bytes
- Lines
- 39
- 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
linux/irqflags.hlinux/compiler.hasm/barrier.hasm-generic/bitops/__ffs.hasm-generic/bitops/ffz.hasm-generic/bitops/fls.hasm-generic/bitops/__fls.hasm-generic/bitops/fls64.hasm-generic/bitops/sched.hasm-generic/bitops/ffs.hasm-generic/bitops/hweight.hasm-generic/bitops/lock.hasm-generic/bitops/atomic.hasm-generic/bitops/non-atomic.hasm-generic/bitops/le.hasm-generic/bitops/ext2-atomic.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#ifndef __ASM_GENERIC_BITOPS_H
#define __ASM_GENERIC_BITOPS_H
/*
* For the benefit of those who are trying to port Linux to another
* architecture, here are some C-language equivalents. They should
* generate reasonable code, so take a look at what your compiler spits
* out before rolling your own buggy implementation in assembly language.
*
* C language equivalents written by Theodore Ts'o, 9/26/92
*/
#include <linux/irqflags.h>
#include <linux/compiler.h>
#include <asm/barrier.h>
#include <asm-generic/bitops/__ffs.h>
#include <asm-generic/bitops/ffz.h>
#include <asm-generic/bitops/fls.h>
#include <asm-generic/bitops/__fls.h>
#include <asm-generic/bitops/fls64.h>
#ifndef _LINUX_BITOPS_H
#error only <linux/bitops.h> can be included directly
#endif
#include <asm-generic/bitops/sched.h>
#include <asm-generic/bitops/ffs.h>
#include <asm-generic/bitops/hweight.h>
#include <asm-generic/bitops/lock.h>
#include <asm-generic/bitops/atomic.h>
#include <asm-generic/bitops/non-atomic.h>
#include <asm-generic/bitops/le.h>
#include <asm-generic/bitops/ext2-atomic.h>
#endif /* __ASM_GENERIC_BITOPS_H */
Annotation
- Immediate include surface: `linux/irqflags.h`, `linux/compiler.h`, `asm/barrier.h`, `asm-generic/bitops/__ffs.h`, `asm-generic/bitops/ffz.h`, `asm-generic/bitops/fls.h`, `asm-generic/bitops/__fls.h`, `asm-generic/bitops/fls64.h`.
- 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.