[lkml]   [2009]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH v2] gpiolib: allow poll(2) on gpio value
    On Thu, Jul 2, 2009 at 2:05 AM, David Brownell<> wrote:
    > On Wednesday 10 June 2009, Daniel Glöckner wrote:
    >> Many gpio chips allow to generate interrupts when the value of a pin
    >> changes. This patch gives usermode application the opportunity to make
    >> use of this feature by calling poll(2) on the /sys/class/gpio/gpioN/value
    >> sysfs file. The edge to trigger can be set in the edge file in the same
    >> directory. Possible values are "none", "rising", "falling", and "both".
    > Looks pretty clean.  Comments from anyone else?

    I'd appreciate a kernel side interface to gpio_setup_irq functionality
    as well; now gpio_export from kernel won't setup support for poll(2)
    nor is there any possibility to do so. Having said that, it can be
    done in another patch, another day, I don't want that to be holding
    this patch back.

    And I guess it might also be argued that anyone wanting to poll(2) can
    setup edge triggering from user space when needed. Other thoughts on

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2009-07-02 13:17    [W:0.045 / U:44.572 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site