Atomic and pointer manipulation
Prev
Chapter 1. Driver Basics
Next
Atomic and pointer manipulation
atomic_read
— read atomic variable
atomic_set
— set atomic variable
atomic_add
— add integer to atomic variable
atomic_sub
— subtract integer from atomic variable
atomic_sub_and_test
— subtract value from variable and test result
atomic_inc
— increment atomic variable
atomic_dec
— decrement atomic variable
atomic_dec_and_test
— decrement and test
atomic_inc_and_test
— increment and test
atomic_add_negative
— add and test if negative
atomic_add_return
— add integer and return
atomic_sub_return
— subtract integer and return
atomic_add_unless
— add unless the number is already a given value
atomic_inc_short
— increment of a short integer
atomic_or_long
— OR of two long integers