akaros/scripts/spatch/locks.cocci
<<
>>
Prefs
   1@@
   2expression E;
   3@@
   4-lock(
   5+spin_lock(
   6-E
   7+&E->lock
   8 )
   9
  10@@
  11expression E;
  12@@
  13-ilock(
  14+spin_lock_irqsave(
  15-E
  16+&E->lock
  17 )
  18
  19@@
  20expression E;
  21@@
  22-unlock(
  23+spin_unlock(
  24-E
  25+&E->lock
  26 )
  27
  28@@
  29expression E;
  30@@
  31-iunlock(
  32+spin_unlock_irqsave(
  33-E
  34+&E->lock
  35 )
  36
  37@@
  38expression E;
  39@@
  40wlock(
  41-E
  42+&E->rwlock
  43 )
  44@@
  45expression E;
  46@@
  47wunlock(
  48-E
  49+&E->rwlock
  50 )
  51
  52@@
  53expression E;
  54@@
  55rlock(
  56-E
  57+&E->rwlock
  58 )
  59@@
  60expression E;
  61@@
  62canrlock(
  63-E
  64+&E->rwlock
  65 )
  66@@
  67expression E;
  68@@
  69runlock(
  70-E
  71+&E->rwlock
  72 )
  73@@
  74
  75expression E;
  76@@
  77qlock(
  78-E
  79+&E->qlock
  80 )
  81@@
  82expression E;
  83@@
  84qunlock(
  85-E
  86+&E->qlock
  87 )
  88@@
  89expression E;
  90@@
  91canqlock(
  92-E
  93+&E->qlock
  94 )
  95