include/acpi/platform/aclinuxex.h
Source file repositories/reference/linux-study-clean/include/acpi/platform/aclinuxex.h
File Facts
- System
- Linux kernel
- Corpus path
include/acpi/platform/aclinuxex.h- Extension
.h- Size
- 3374 bytes
- Lines
- 141
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
function irqs_disabledfunction acpi_os_get_thread_idfunction acpi_os_acquire_raw_lockfunction acpi_os_release_raw_lockfunction acpi_os_delete_raw_lockfunction acpi_os_readablefunction acpi_os_initialize_debuggerfunction acpi_os_terminate_debugger
Annotated Snippet
if (lock) { \
*(__handle) = lock; \
spin_lock_init(*(__handle)); \
} \
lock ? AE_OK : AE_NO_MEMORY; \
})
#define acpi_os_create_raw_lock(__handle) \
({ \
raw_spinlock_t *lock = ACPI_ALLOCATE(sizeof(*lock)); \
if (lock) { \
*(__handle) = lock; \
raw_spin_lock_init(*(__handle)); \
} \
lock ? AE_OK : AE_NO_MEMORY; \
})
static inline acpi_cpu_flags acpi_os_acquire_raw_lock(acpi_raw_spinlock lockp)
{
acpi_cpu_flags flags;
raw_spin_lock_irqsave(lockp, flags);
return flags;
}
static inline void acpi_os_release_raw_lock(acpi_raw_spinlock lockp,
acpi_cpu_flags flags)
{
raw_spin_unlock_irqrestore(lockp, flags);
}
static inline void acpi_os_delete_raw_lock(acpi_raw_spinlock handle)
{
ACPI_FREE(handle);
}
static inline u8 acpi_os_readable(void *pointer, acpi_size length)
{
return TRUE;
}
static inline acpi_status acpi_os_initialize_debugger(void)
{
return AE_OK;
}
static inline void acpi_os_terminate_debugger(void)
{
return;
}
/*
* OSL interfaces added by Linux
*/
#endif /* __KERNEL__ */
#endif /* __ACLINUXEX_H__ */
Annotation
- Detected declarations: `function irqs_disabled`, `function acpi_os_get_thread_id`, `function acpi_os_acquire_raw_lock`, `function acpi_os_release_raw_lock`, `function acpi_os_delete_raw_lock`, `function acpi_os_readable`, `function acpi_os_initialize_debugger`, `function acpi_os_terminate_debugger`.
- Atlas domain: Repository Root And Misc / include.
- 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.