Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
4Activity
0 of .
Results for:
No results containing your search query
P. 1
Linux Kernel API

Linux Kernel API

Ratings: (0)|Views: 39 |Likes:
Published by prajnith

More info:

Published by: prajnith on May 01, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/22/2013

pdf

text

original

 
The Linux Kernel API
 
The Linux Kernel API
This documentation is free software; you can redistribute it and/or modify it under the terms of the GNU General PublicLicense as published by the Free Software Foundation; either version 2 of the License, or (at your option) any laterversion.This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even theimplied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU GeneralPublic License for more details.You should have received a copy of the GNU General Public License along with this program; if not, write to the FreeSoftware Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USAFor more details see the file COPYING in the source distribution of Linux.
 
Table of Contents
1. Driver Basics...............................................................................................................1
1.1. Driver Entry and Exit points.............................................................................1module_init......................................................................................................1module_exit......................................................................................................11.2. Atomic and pointer manipulation.....................................................................2atomic_read......................................................................................................3atomic_set........................................................................................................3atomic_add.......................................................................................................4atomic_sub.......................................................................................................5atomic_sub_and_test........................................................................................6atomic_inc........................................................................................................7atomic_dec.......................................................................................................8atomic_dec_and_test........................................................................................9atomic_inc_and_test ......................................................................................10atomic_add_negative......................................................................................11get_unaligned.................................................................................................12put_unaligned.................................................................................................121.3. Delaying, scheduling, and timer routines .......................................................13schedule_timeout...........................................................................................14
2. Data Types ................................................................................................................16
2.1. Doubly Linked Lists .......................................................................................16list_add...........................................................................................................16list_add_tail....................................................................................................16list_del............................................................................................................17list_del_init ....................................................................................................18list_empty.......................................................................................................19list_splice.......................................................................................................19list_entry ........................................................................................................20list_for_each...................................................................................................21list_for_each_safe..........................................................................................22
3. Basic C Library Functions......................................................................................24
3.1. String Conversions..........................................................................................24simple_strtol...................................................................................................24simple_strtoll .................................................................................................25simple_strtoul.................................................................................................25simple_strtoull ...............................................................................................26vsnprintf.........................................................................................................27
i

Activity (4)

You've already reviewed this. Edit your review.
1 hundred reads
sandey16585 liked this
ALi liked this
ALi liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->