1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Device Resource Management</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 1. Driver Basics"><link rel="prev" href="API-rcu-barrier-tasks.html" title="rcu_barrier_tasks"><link rel="next" href="API-devres-alloc.html" title="devres_alloc"></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">Device Resource Management</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-rcu-barrier-tasks.html">Prev</a> </td><th width="60%" align="center">Chapter 1. Driver Basics</th><td width="20%" align="right"> <a accesskey="n" href="API-devres-alloc.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idp1108779324"></a>Device Resource Management</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="refentrytitle"><a href="API-devres-alloc.html"><span class="phrase">devres_alloc</span></a></span><span class="refpurpose"> — 2 Allocate device resource data 3 </span></dt><dt><span class="refentrytitle"><a href="API-devres-for-each-res.html"><span class="phrase">devres_for_each_res</span></a></span><span class="refpurpose"> — 4 Resource iterator 5 </span></dt><dt><span class="refentrytitle"><a href="API-devres-free.html"><span class="phrase">devres_free</span></a></span><span class="refpurpose"> — 6 Free device resource data 7 </span></dt><dt><span class="refentrytitle"><a href="API-devres-add.html"><span class="phrase">devres_add</span></a></span><span class="refpurpose"> — 8 Register device resource 9 </span></dt><dt><span class="refentrytitle"><a href="API-devres-find.html"><span class="phrase">devres_find</span></a></span><span class="refpurpose"> — 10 Find device resource 11 </span></dt><dt><span class="refentrytitle"><a href="API-devres-get.html"><span class="phrase">devres_get</span></a></span><span class="refpurpose"> — 12 Find devres, if non-existent, add one atomically 13 </span></dt><dt><span class="refentrytitle"><a href="API-devres-remove.html"><span class="phrase">devres_remove</span></a></span><span class="refpurpose"> — 14 Find a device resource and remove it 15 </span></dt><dt><span class="refentrytitle"><a href="API-devres-destroy.html"><span class="phrase">devres_destroy</span></a></span><span class="refpurpose"> — 16 Find a device resource and destroy it 17 </span></dt><dt><span class="refentrytitle"><a href="API-devres-release.html"><span class="phrase">devres_release</span></a></span><span class="refpurpose"> — 18 Find a device resource and destroy it, calling release 19 </span></dt><dt><span class="refentrytitle"><a href="API-devres-open-group.html"><span class="phrase">devres_open_group</span></a></span><span class="refpurpose"> — 20 Open a new devres group 21 </span></dt><dt><span class="refentrytitle"><a href="API-devres-close-group.html"><span class="phrase">devres_close_group</span></a></span><span class="refpurpose"> — 22 Close a devres group 23 </span></dt><dt><span class="refentrytitle"><a href="API-devres-remove-group.html"><span class="phrase">devres_remove_group</span></a></span><span class="refpurpose"> — 24 Remove a devres group 25 </span></dt><dt><span class="refentrytitle"><a href="API-devres-release-group.html"><span class="phrase">devres_release_group</span></a></span><span class="refpurpose"> — 26 Release resources in a devres group 27 </span></dt><dt><span class="refentrytitle"><a href="API-devm-add-action.html"><span class="phrase">devm_add_action</span></a></span><span class="refpurpose"> — 28 add a custom action to list of managed resources 29 </span></dt><dt><span class="refentrytitle"><a href="API-devm-remove-action.html"><span class="phrase">devm_remove_action</span></a></span><span class="refpurpose"> — 30 removes previously added custom action 31 </span></dt><dt><span class="refentrytitle"><a href="API-devm-kmalloc.html"><span class="phrase">devm_kmalloc</span></a></span><span class="refpurpose"> — 32 Resource-managed kmalloc 33 </span></dt><dt><span class="refentrytitle"><a href="API-devm-kstrdup.html"><span class="phrase">devm_kstrdup</span></a></span><span class="refpurpose"> — 34 Allocate resource managed space and copy an existing string into that. 35 </span></dt><dt><span class="refentrytitle"><a href="API-devm-kvasprintf.html"><span class="phrase">devm_kvasprintf</span></a></span><span class="refpurpose"> — 36 Allocate resource managed space and format a string into that. 37 </span></dt><dt><span class="refentrytitle"><a href="API-devm-kasprintf.html"><span class="phrase">devm_kasprintf</span></a></span><span class="refpurpose"> — 38 Allocate resource managed space and format a string into that. 39 </span></dt><dt><span class="refentrytitle"><a href="API-devm-kfree.html"><span class="phrase">devm_kfree</span></a></span><span class="refpurpose"> — 40 Resource-managed kfree 41 </span></dt><dt><span class="refentrytitle"><a href="API-devm-kmemdup.html"><span class="phrase">devm_kmemdup</span></a></span><span class="refpurpose"> — 42 Resource-managed kmemdup 43 </span></dt><dt><span class="refentrytitle"><a href="API-devm-get-free-pages.html"><span class="phrase">devm_get_free_pages</span></a></span><span class="refpurpose"> — 44 Resource-managed __get_free_pages 45 </span></dt><dt><span class="refentrytitle"><a href="API-devm-free-pages.html"><span class="phrase">devm_free_pages</span></a></span><span class="refpurpose"> — 46 Resource-managed free_pages 47 </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-rcu-barrier-tasks.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="Basics.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-devres-alloc.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">rcu_barrier_tasks</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">devres_alloc</span></td></tr></table></div></body></html> 48