1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Atomic and pointer manipulation</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="Basics.html" title="Chapter&#160;1.&#160;Driver Basics"><link rel="prev" href="API-module-exit.html" title="module_exit"><link rel="next" href="API-atomic-read.html" title="atomic_read"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Atomic and pointer manipulation</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-module-exit.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;1.&#160;Driver Basics</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-atomic-read.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idp1104144836"></a>Atomic and pointer manipulation</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="refentrytitle"><a href="API-atomic-read.html"><span class="phrase">atomic_read</span></a></span><span class="refpurpose"> &#8212; 
2  read atomic variable
3 </span></dt><dt><span class="refentrytitle"><a href="API-atomic-set.html"><span class="phrase">atomic_set</span></a></span><span class="refpurpose"> &#8212; 
4     set atomic variable
5 </span></dt><dt><span class="refentrytitle"><a href="API-atomic-add.html"><span class="phrase">atomic_add</span></a></span><span class="refpurpose"> &#8212; 
6     add integer to atomic variable
7 </span></dt><dt><span class="refentrytitle"><a href="API-atomic-sub.html"><span class="phrase">atomic_sub</span></a></span><span class="refpurpose"> &#8212; 
8     subtract integer from atomic variable
9 </span></dt><dt><span class="refentrytitle"><a href="API-atomic-sub-and-test.html"><span class="phrase">atomic_sub_and_test</span></a></span><span class="refpurpose"> &#8212; 
10     subtract value from variable and test result
11 </span></dt><dt><span class="refentrytitle"><a href="API-atomic-inc.html"><span class="phrase">atomic_inc</span></a></span><span class="refpurpose"> &#8212; 
12     increment atomic variable
13 </span></dt><dt><span class="refentrytitle"><a href="API-atomic-dec.html"><span class="phrase">atomic_dec</span></a></span><span class="refpurpose"> &#8212; 
14     decrement atomic variable
15 </span></dt><dt><span class="refentrytitle"><a href="API-atomic-dec-and-test.html"><span class="phrase">atomic_dec_and_test</span></a></span><span class="refpurpose"> &#8212; 
16     decrement and test
17 </span></dt><dt><span class="refentrytitle"><a href="API-atomic-inc-and-test.html"><span class="phrase">atomic_inc_and_test</span></a></span><span class="refpurpose"> &#8212; 
18     increment and test
19 </span></dt><dt><span class="refentrytitle"><a href="API-atomic-add-negative.html"><span class="phrase">atomic_add_negative</span></a></span><span class="refpurpose"> &#8212; 
20     add and test if negative
21 </span></dt><dt><span class="refentrytitle"><a href="API-atomic-add-return.html"><span class="phrase">atomic_add_return</span></a></span><span class="refpurpose"> &#8212; 
22     add integer and return
23 </span></dt><dt><span class="refentrytitle"><a href="API-atomic-sub-return.html"><span class="phrase">atomic_sub_return</span></a></span><span class="refpurpose"> &#8212; 
24     subtract integer and return
25 </span></dt><dt><span class="refentrytitle"><a href="API---atomic-add-unless.html"><span class="phrase">__atomic_add_unless</span></a></span><span class="refpurpose"> &#8212; 
26     add unless the number is already a given value
27 </span></dt><dt><span class="refentrytitle"><a href="API-atomic-inc-short.html"><span class="phrase">atomic_inc_short</span></a></span><span class="refpurpose"> &#8212; 
28     increment of a short integer
29 </span></dt></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-module-exit.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="Basics.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-atomic-read.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">module_exit</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">atomic_read</span></td></tr></table></div></body></html>
30