[lkml]   [2010]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH RFC 00/11] lock monitor: Separate features related to lock
    On 03/24/10 00:32, Peter Zijlstra wrote:
    > On Sat, 2010-03-20 at 17:23 +0900, Hitoshi Mitake wrote:
    >> In lockdep, held_locks of task_struct are accessed this arithmetical way
    >> prev = curr->held_locks + i;
    >> Of course this is valid way, but I feel it is more simple and
    natural way
    >> prev = curr->held_locks[i];
    > The latter is a type mis-match, an equivalent expression would be:
    > &curr->held_locks[i];

    Yeah, sorry.

    And is there reason that the statement is not
    prev = curr->held_locks + i;

    Of course, curr->held_locks + i style statement causes no problem.
    But I had a little interest in the selection of style.
    Do you know the reason?


     \ /
      Last update: 2010-04-04 09:59    [W:0.029 / U:9.012 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site