lkml.org 
[lkml]   [2005]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [rfc][patch] API for timer hooks
    From
    Date
    On Sat, 2005-08-13 at 17:36 +0400, Stas Sergeev wrote:
    > Hello.
    >
    > Right now it seems like the only interface
    > for registering the timer hooks is that one
    > of kernel/profile.c, and it is very limited.
    > The arch-specific timer hooks are provided
    > in an arch-specific headers as a static
    > functions.
    > Since my driver needs the timer hook, I
    > thought it might be a good idea to add an
    > API for registering the timer hooks.
    > The attached patch adds such an API and
    > converts all the relevant places to use it.
    > I changed oprofile to use it, and also
    > converted the arch-specific hooks, which
    > looks like a fair cleanup.
    >
    > The API allows to register, unregister
    > and grab the timer hook. The grabbing
    > hook will always be executed first, and
    > can decide to prevent an execution of
    > the rest ones. The hook can have the
    > "run_always" flag set, in which case it
    > won't be bypassed, regardless of the
    > grabbing hook.
    >
    > Does such an API look viable?
    > As usual, it is needed for the PC-Speaker
    > PCM driver that is currently in an ALSA CVS,
    > awaiting for the proper interface to appear
    > in the kernel.


    Interesting. Could you explain why the soft-timer interface doesn't
    suffice?

    thanks
    -john


    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-08-15 19:21    [W:2.639 / U:0.392 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site