<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <HTML ><HEAD ><TITLE >Atomic and pointer manipulation</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="The Linux Kernel API" HREF="book1.html"><LINK REL="UP" TITLE="Driver Basics" HREF="c10.html"><LINK REL="PREVIOUS" TITLE="Driver Basics" HREF="c10.html"><LINK REL="NEXT" TITLE="atomic_read" HREF="r75.html"></HEAD ><BODY CLASS="SECT1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >The Linux Kernel API</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="c10.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Driver Basics</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="r75.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="AEN73" ></A >Atomic and pointer manipulation</H1 ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="r75.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >atomic_read</SPAN ></SPAN ></A > -- read atomic variable </DT ><DT ><A HREF="r102.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >atomic_set</SPAN ></SPAN ></A > -- set atomic variable </DT ><DT ><A HREF="r137.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >atomic_add</SPAN ></SPAN ></A > -- add integer to atomic variable </DT ><DT ><A HREF="r172.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >atomic_sub</SPAN ></SPAN ></A > -- subtract the atomic variable </DT ><DT ><A HREF="r207.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >atomic_sub_and_test</SPAN ></SPAN ></A > -- subtract value from variable and test result </DT ><DT ><A HREF="r242.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >atomic_inc</SPAN ></SPAN ></A > -- increment atomic variable </DT ><DT ><A HREF="r269.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >atomic_dec</SPAN ></SPAN ></A > -- decrement atomic variable </DT ><DT ><A HREF="r296.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >atomic_dec_and_test</SPAN ></SPAN ></A > -- decrement and test </DT ><DT ><A HREF="r323.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >atomic_inc_and_test</SPAN ></SPAN ></A > -- increment and test </DT ><DT ><A HREF="r350.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >atomic_add_negative</SPAN ></SPAN ></A > -- add and test if negative </DT ><DT ><A HREF="r385.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >get_unaligned</SPAN ></SPAN ></A > -- get value from possibly mis-aligned location </DT ><DT ><A HREF="r412.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >put_unaligned</SPAN ></SPAN ></A > -- put value to a possibly mis-aligned location </DT ></DL ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="c10.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="book1.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="r75.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Driver Basics</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="c10.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >atomic_read</SPAN ></SPAN ></TD ></TR ></TABLE ></DIV ></BODY ></HTML >