MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / atomic_dec_and_test

Function atomic_dec_and_test

Ext4Fsd/include/linux/atomic.h:121–124  ·  view source on GitHub ↗

* atomic_dec_and_test - decrement and test * @v: pointer of type atomic_t * * Atomically decrements @v by 1 and * returns true if the result is 0, or false for all other * cases. Note that the guaranteed * useful range of an atomic_t is only 24 bits. */

Source from the content-addressed store, hash-verified

119 * useful range of an atomic_t is only 24 bits.
120 */
121static inline int atomic_dec_and_test(atomic_t volatile *v)
122{
123 return (0 == InterlockedDecrement((PLONG)(&v->counter)));
124}
125
126/**
127 * atomic_inc_and_test - increment and test

Callers 3

__brelseFunction · 0.85
iputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected