This adds pin change notification to the gpiolib sysfs interface. It requires 16 extra bytes in gpio_desc iff CONFIG_GPIO_SYSFS which in turn means, eg, 4k of .bss usage on AVR32. Due to limitations in sysfs, this patch makes poll(2) and friends work as expected on the "value" attribute, though reads on "value" will never block and there is no facility for async reads and writes. Signed-off-by: Ben Nizette --- Right, there seems to be a new outgoing mail server between me and you which viciously attacks tabulations. Until I find the monkey responsible please accept the patch as an attachment along with my apologies. Documentation/gpio.txt | 48 +++++++++ drivers/gpio/gpiolib.c | 246 ++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 289 insertions(+), 5 deletions(-)