[lkml]   [2006]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Generic battery interface
    On 7/29/06, Vojtech Pavlik <> wrote:
    > > The lazy polling approach I described in my last post to Vojtech
    > > ("block until there's a new readout or N milliseconds have passed,
    > > whichever is later") looks like a more general, accurate and efficient
    > > interface.
    > If "N" is given by the kernel, then it's identical to an event-based
    > approach. ;) Just described in different words.

    No, N is given separately by each userspace client, on every call.
    That's the whole point. The kernel driver then does the minimal
    hardware querying and event generation that (a) makes sense for the
    hardware and (b) satisfies all userspace clients.

    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: 2006-07-29 12:33    [W:0.021 / U:3.044 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site