drivers/gpio/gpiolib-of.h
Source file repositories/reference/linux-study-clean/drivers/gpio/gpiolib-of.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpio/gpiolib-of.h- Extension
.h- Size
- 1656 bytes
- Lines
- 62
- Domain
- Driver Families
- Bucket
- drivers/gpio
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/err.hlinux/types.hlinux/notifier.h
Detected Declarations
struct device_nodestruct fwnode_handlestruct fwnode_reference_argsstruct gpio_chipstruct gpio_descstruct gpio_devicefunction of_gpiochip_addfunction of_gpiochip_removefunction of_gpio_countfunction of_gpiochip_get_lflags
Annotated Snippet
static inline int of_gpiochip_add(struct gpio_chip *gc) { return 0; }
static inline void of_gpiochip_remove(struct gpio_chip *gc) { }
static inline bool of_gpiochip_instance_match(struct gpio_chip *gc,
unsigned int index)
{
return false;
}
static inline int of_gpio_count(const struct fwnode_handle *fwnode,
const char *con_id)
{
return 0;
}
static inline int of_gpiochip_get_lflags(struct gpio_chip *chip,
struct fwnode_reference_args *gpiospec,
unsigned long *lflags)
{
return -ENOENT;
}
#endif /* CONFIG_OF_GPIO */
extern struct notifier_block gpio_of_notifier;
#endif /* GPIOLIB_OF_H */
Annotation
- Immediate include surface: `linux/err.h`, `linux/types.h`, `linux/notifier.h`.
- Detected declarations: `struct device_node`, `struct fwnode_handle`, `struct fwnode_reference_args`, `struct gpio_chip`, `struct gpio_desc`, `struct gpio_device`, `function of_gpiochip_add`, `function of_gpiochip_remove`, `function of_gpio_count`, `function of_gpiochip_get_lflags`.
- Atlas domain: Driver Families / drivers/gpio.
- 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.