drivers/gpio/gpiolib-sysfs.h

Source file repositories/reference/linux-study-clean/drivers/gpio/gpiolib-sysfs.h

File Facts

System
Linux kernel
Corpus path
drivers/gpio/gpiolib-sysfs.h
Extension
.h
Size
462 bytes
Lines
27
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.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef GPIOLIB_SYSFS_H
#define GPIOLIB_SYSFS_H

struct gpio_device;

#ifdef CONFIG_GPIO_SYSFS

int gpiochip_sysfs_register(struct gpio_chip *gc);
void gpiochip_sysfs_unregister(struct gpio_chip *gc);

#else

static inline int gpiochip_sysfs_register(struct gpio_chip *gc)
{
	return 0;
}

static inline void gpiochip_sysfs_unregister(struct gpio_chip *gc)
{
}

#endif /* CONFIG_GPIO_SYSFS */

#endif /* GPIOLIB_SYSFS_H */

Annotation

Implementation Notes