[lkml]   [2002]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Structure clobbering causes timer oopses
    On Sun, Oct 13, 2002 at 02:17:46AM +0000, Dave Hansen wrote:
    > > If they're initially using add_timer(), that works out
    > > OK. It they start out using mod_timer() (or del_timer) then bug.
    > The init_timer() comment says otherwise, but I imagine that not using
    > it shouldn't _cause_ any bugs.
    > * init_timer() must be done to a timer prior calling *any* of the
    > * other timer functions.

    I am not sure about that. init_timer() initializes timer->base
    and timer_pending() checks for base == NULL. So, it is illegal
    to do timer_pending(), mod_timer() and del_timer*() without an
    init_timer() or an add_timer() earlier. But then, I presume this
    was a requirement in the earlier timer interfaces too. No ?

    Dipankar Sarma <>
    Linux Technology Center, IBM Software Lab, Bangalore, India.
    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: 2005-03-22 13:30    [W:0.020 / U:9.888 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site