drivers/gpio/gpiolib-acpi.h
Source file repositories/reference/linux-study-clean/drivers/gpio/gpiolib-acpi.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpio/gpiolib-acpi.h- Extension
.h- Size
- 1964 bytes
- Lines
- 77
- 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/gpio/consumer.h
Detected Declarations
struct devicestruct fwnode_handlestruct gpio_chipstruct gpio_descstruct gpio_deviceenum acpi_gpio_ignore_listfunction acpi_gpiochip_addfunction acpi_gpio_count
Annotated Snippet
static inline void acpi_gpiochip_add(struct gpio_chip *chip) { }
static inline void acpi_gpiochip_remove(struct gpio_chip *chip) { }
static inline void
acpi_gpiochip_request_interrupts(struct gpio_chip *chip) { }
static inline void
acpi_gpiochip_free_interrupts(struct gpio_chip *chip) { }
static inline struct gpio_desc *
acpi_find_gpio(struct fwnode_handle *fwnode, const char *con_id,
unsigned int idx, enum gpiod_flags *dflags,
unsigned long *lookupflags)
{
return ERR_PTR(-ENOENT);
}
static inline int acpi_gpio_count(const struct fwnode_handle *fwnode,
const char *con_id)
{
return -ENODEV;
}
#endif
void acpi_gpio_process_deferred_list(struct list_head *list);
bool acpi_gpio_add_to_deferred_list(struct list_head *list);
void acpi_gpio_remove_from_deferred_list(struct list_head *list);
int acpi_gpio_need_run_edge_events_on_boot(void);
enum acpi_gpio_ignore_list {
ACPI_GPIO_IGNORE_WAKE,
ACPI_GPIO_IGNORE_INTERRUPT,
};
bool acpi_gpio_in_ignore_list(enum acpi_gpio_ignore_list list,
const char *controller_in, unsigned int pin_in);
#endif /* GPIOLIB_ACPI_H */
Annotation
- Immediate include surface: `linux/err.h`, `linux/types.h`, `linux/gpio/consumer.h`.
- Detected declarations: `struct device`, `struct fwnode_handle`, `struct gpio_chip`, `struct gpio_desc`, `struct gpio_device`, `enum acpi_gpio_ignore_list`, `function acpi_gpiochip_add`, `function acpi_gpio_count`.
- 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.