include/linux/soc/apple/sart.h
Source file repositories/reference/linux-study-clean/include/linux/soc/apple/sart.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/soc/apple/sart.h- Extension
.h- Size
- 1602 bytes
- Lines
- 54
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/device.hlinux/err.hlinux/types.h
Detected Declarations
struct apple_sart
Annotated Snippet
#ifndef _LINUX_SOC_APPLE_SART_H_
#define _LINUX_SOC_APPLE_SART_H_
#include <linux/device.h>
#include <linux/err.h>
#include <linux/types.h>
struct apple_sart;
/*
* Get a reference to the SART attached to dev.
*
* Looks for the phandle reference in apple,sart and returns a pointer
* to the corresponding apple_sart struct to be used with
* apple_sart_add_allowed_region and apple_sart_remove_allowed_region.
*/
struct apple_sart *devm_apple_sart_get(struct device *dev);
/*
* Adds the region [paddr, paddr+size] to the DMA allow list.
*
* @sart: SART reference
* @paddr: Start address of the region to be used for DMA
* @size: Size of the region to be used for DMA.
*/
int apple_sart_add_allowed_region(struct apple_sart *sart, phys_addr_t paddr,
size_t size);
/*
* Removes the region [paddr, paddr+size] from the DMA allow list.
*
* Note that exact same paddr and size used for apple_sart_add_allowed_region
* have to be passed.
*
* @sart: SART reference
* @paddr: Start address of the region no longer used for DMA
* @size: Size of the region no longer used for DMA.
*/
int apple_sart_remove_allowed_region(struct apple_sart *sart, phys_addr_t paddr,
size_t size);
#endif /* _LINUX_SOC_APPLE_SART_H_ */
Annotation
- Immediate include surface: `linux/device.h`, `linux/err.h`, `linux/types.h`.
- Detected declarations: `struct apple_sart`.
- Atlas domain: Core OS / Core Kernel Interface.
- 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.