include/linux/iio/driver.h
Source file repositories/reference/linux-study-clean/include/linux/iio/driver.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/iio/driver.h- Extension
.h- Size
- 1389 bytes
- Lines
- 45
- 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
- No C-style include directives detected by the generator.
Detected Declarations
struct devicestruct iio_devstruct iio_map
Annotated Snippet
#ifndef _IIO_INKERN_H_
#define _IIO_INKERN_H_
struct device;
struct iio_dev;
struct iio_map;
/**
* iio_map_array_register() - tell the core about inkernel consumers
* @indio_dev: provider device
* @map: array of mappings specifying association of channel with client
*/
int iio_map_array_register(struct iio_dev *indio_dev,
const struct iio_map *map);
/**
* iio_map_array_unregister() - tell the core to remove consumer mappings for
* the given provider device
* @indio_dev: provider device
*/
int iio_map_array_unregister(struct iio_dev *indio_dev);
/**
* devm_iio_map_array_register - device-managed version of iio_map_array_register
* @dev: Device object to which to bind the unwinding of this registration
* @indio_dev: Pointer to the iio_dev structure
* @maps: Pointer to an IIO map object which is to be registered to this IIO device
*
* This function will call iio_map_array_register() to register an IIO map object
* and will also hook a callback to the iio_map_array_unregister() function to
* handle de-registration of the IIO map object when the device's refcount goes to
* zero.
*/
int devm_iio_map_array_register(struct device *dev, struct iio_dev *indio_dev,
const struct iio_map *maps);
#endif
Annotation
- Detected declarations: `struct device`, `struct iio_dev`, `struct iio_map`.
- 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.