1 void _spin_lock(int name
);
2 void _spin_unlock(int name
);
3 int _spin_trylock(int name
);
13 if (!_spin_trylock(mylock
)) {
18 _spin_unlock(mylock2
);
24 if (!_spin_trylock(mylock3
))
30 * check-name: Locking #2
31 * check-command: smatch sm_locking2.c
34 sm_locking2.c +21 func(14) error: double unlock 'mylock'
35 sm_locking2.c +26 func(19) warn: lock 'mylock3' held on line 26 but not on 25.