![]() |
|
|||
0001 cat <<EOF 0002 /** 0003 * arch_${atomic}_inc_not_zero - increment unless the number is zero 0004 * @v: pointer of type ${atomic}_t 0005 * 0006 * Atomically increments @v by 1, if @v is non-zero. 0007 * Returns true if the increment was done. 0008 */ 0009 static __always_inline bool 0010 arch_${atomic}_inc_not_zero(${atomic}_t *v) 0011 { 0012 return arch_${atomic}_add_unless(v, 1, 0); 0013 } 0014 EOF
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |