lkml.org 
[lkml]   [1997]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: MOD_INC_USE_COUNT
    > |>   During this non-atomic operation, before the increment occurs, we
    > |> have a context switch (is this possible when we are in kernel code?)
    > No.
    Then, why are both MOD_INC_USE_COUNT and MOD_DEC_USE_COUNT needed in
    functions like read_super() :

    ... read_super(...) {
    MOD_INC_USE_COUNT;
    ...
    MOD_DEC_USE_COUNT;
    }

    , since nothing else can happen while the function is executed?

    Best regards,

    Regis "HPReg" Duchesne - Engineering Student at ***** ******** *****
    www http://www.via.ecp.fr/~regis/
    (O o) I use Linux & 3Com (1135 KB/s over 10Mb/s ethernet)
    --.oOO--(_)--OOo.-----------------------------------------------------------


    \
     
     \ /
      Last update: 2005-03-22 13:40    [W:0.019 / U:61.152 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site