Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 53919da1eb7b299aeaf7fae0057a75b7 > files > 861

libnl3-doc-3.2.21-1.fc18.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>libnl: Controller (Resolver)</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="libnl.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">libnl
   &#160;<span id="projectnumber">3.2.21</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__genl__ctrl.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#groups">Modules</a>  </div>
  <div class="headertitle">
<div class="title">Controller (Resolver)</div>  </div>
<div class="ingroups"><a class="el" href="group__genl.html">Generic Netlink Library (libnl-genl)</a></div></div><!--header-->
<div class="contents">

<p>Resolves Generic Netlink family names to numeric identifiers.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="groups"></a>
Modules</h2></td></tr>
<tr class="memitem:group__genl__family"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__genl__family.html">Generic Netlink Family Object</a></td></tr>
<tr class="memdesc:group__genl__family"><td class="mdescLeft">&#160;</td><td class="mdescRight">Object representing a kernel side registered Generic Netlink family. <br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="member-group"></a>
Controller Cache</h2></td></tr>
<tr><td class="ititle" colspan="2"><p><a class="anchor" id="amgrpca4b8e51a0f572553f95c33115d03997"></a>The controller cache allows to keep a local copy of the list of all kernel side registered Generic Netlink families to quickly resolve multiple Generic Netlink family names without requiring to communicate with the kernel for each resolving iteration. </p>
</td></tr>
<tr class="memitem:ga6fc84115fec64211423b4370f8814f7f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__genl__ctrl.html#ga6fc84115fec64211423b4370f8814f7f">genl_ctrl_alloc_cache</a> (struct nl_sock *sk, struct nl_cache **result)</td></tr>
<tr class="memdesc:ga6fc84115fec64211423b4370f8814f7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocate a new controller cache.  <a href="#ga6fc84115fec64211423b4370f8814f7f"></a><br/></td></tr>
<tr class="memitem:ga0b2f0bb288b9e0f4ad3159a5db881e27"><td class="memItemLeft" align="right" valign="top">struct genl_family *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__genl__ctrl.html#ga0b2f0bb288b9e0f4ad3159a5db881e27">genl_ctrl_search</a> (struct nl_cache *cache, int id)</td></tr>
<tr class="memdesc:ga0b2f0bb288b9e0f4ad3159a5db881e27"><td class="mdescLeft">&#160;</td><td class="mdescRight">Search controller cache for a numeric address match.  <a href="#ga0b2f0bb288b9e0f4ad3159a5db881e27"></a><br/></td></tr>
<tr class="memitem:ga8546fd167091c03774f530bc56e8e544"><td class="memItemLeft" align="right" valign="top">struct genl_family *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__genl__ctrl.html#ga8546fd167091c03774f530bc56e8e544">genl_ctrl_search_by_name</a> (struct nl_cache *cache, const char *name)</td></tr>
<tr class="memdesc:ga8546fd167091c03774f530bc56e8e544"><td class="mdescLeft">&#160;</td><td class="mdescRight">Search controller cache for a family name match.  <a href="#ga8546fd167091c03774f530bc56e8e544"></a><br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="member-group"></a>
Direct Resolvers</h2></td></tr>
<tr><td class="ititle" colspan="2"><p><a class="anchor" id="amgrp41fdcb4661edfb0497e3181996800c7b"></a>These functions communicate directly with the kernel and do not require a cache to be kept up to date. </p>
</td></tr>
<tr class="memitem:ga5ead520cad5ee1a2f1411117121aa6dd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__genl__ctrl.html#ga5ead520cad5ee1a2f1411117121aa6dd">genl_ctrl_resolve</a> (struct nl_sock *sk, const char *name)</td></tr>
<tr class="memdesc:ga5ead520cad5ee1a2f1411117121aa6dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resolve Generic Netlink family name to numeric identifier.  <a href="#ga5ead520cad5ee1a2f1411117121aa6dd"></a><br/></td></tr>
<tr class="memitem:gae4be9d99838db33cabc818cd6db6e26c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__genl__ctrl.html#gae4be9d99838db33cabc818cd6db6e26c">genl_ctrl_resolve_grp</a> (struct nl_sock *sk, const char *family_name, const char *grp_name)</td></tr>
<tr class="memdesc:gae4be9d99838db33cabc818cd6db6e26c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resolve Generic Netlink family group name.  <a href="#gae4be9d99838db33cabc818cd6db6e26c"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<p>Resolves Generic Netlink family names to numeric identifiers. </p>
<p>The controller is a component in the kernel that resolves Generic Netlink family names to their numeric identifiers. This module provides functions to query the controller to access the resolving functionality. </p>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ga6fc84115fec64211423b4370f8814f7f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int genl_ctrl_alloc_cache </td>
          <td>(</td>
          <td class="paramtype">struct nl_sock *&#160;</td>
          <td class="paramname"><em>sk</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct nl_cache **&#160;</td>
          <td class="paramname"><em>result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Allocate a new controller cache. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">sk</td><td>Generic Netlink socket </td></tr>
    <tr><td class="paramname">result</td><td>Pointer to store resulting cache</td></tr>
  </table>
  </dd>
</dl>
<p>Allocates a new cache mirroring the state of the controller and stores it in <code>*result</code>. The allocated cache will contain a list of all currently registered kernel side Generic Netlink families. The cache is meant to be used to resolve family names locally.</p>
<dl class="section return"><dt>Returns:</dt><dd>0 on success or a negative error code. </dd></dl>

<p>Definition at line <a class="el" href="ctrl_8c_source.html#l00328">328</a> of file <a class="el" href="ctrl_8c_source.html">ctrl.c</a>.</p>

<p>References <a class="el" href="cache_8c_source.html#l00233">nl_cache_alloc_and_fill()</a>.</p>

<p>Referenced by <a class="el" href="mngt_8c_source.html#l00349">genl_mngt_resolve()</a>, and <a class="el" href="mngt_8c_source.html#l00321">genl_ops_resolve()</a>.</p>

<p><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="group__genl__ctrl_ga6fc84115fec64211423b4370f8814f7f_cgraph.png" border="0" usemap="#group__genl__ctrl_ga6fc84115fec64211423b4370f8814f7f_cgraph" alt=""/></div>
<map name="group__genl__ctrl_ga6fc84115fec64211423b4370f8814f7f_cgraph" id="group__genl__ctrl_ga6fc84115fec64211423b4370f8814f7f_cgraph">
<area shape="rect" id="node3" href="group__cache.html#ga93fdf77495c6e7469ca1d904ab39f73e" title="Allocate new cache and fill it." alt="" coords="211,107,376,133"/><area shape="rect" id="node5" href="group__cache.html#ga9520ae0f2158db3c081f34c851d92252" title="Allocate new cache." alt="" coords="424,56,539,83"/><area shape="rect" id="node9" href="group__cache.html#ga530c896db26d72001d011114b1e6cfaa" title="Free a cache." alt="" coords="426,107,537,133"/><area shape="rect" id="node11" href="group__cache.html#ga10aacd9aef738dbf9e0e5967272999de" title="(Re)fill a cache with the contents in the kernel." alt="" coords="426,157,537,184"/><area shape="rect" id="node7" href="group__hashtable.html#ga385592984c127646229f450e68d54631" title="Allocate hashtable." alt="" coords="587,56,733,83"/><area shape="rect" id="node13" href="group__cache.html#gad22be4bd392afc8daca60a80f24a277b" title="Remove all objects of a cache." alt="" coords="602,107,718,133"/><area shape="rect" id="node29" href="group__cache.html#ga6259b43583b20927adf461300cabca12" title="Pickup a netlink dump response and put it into a cache." alt="" coords="597,157,723,184"/><area shape="rect" id="node31" href="group__cache.html#ga281b7042d76dbdc704dc0a47c7cd83f0" title="Set synchronization arg1 of cache." alt="" coords="589,208,731,235"/><area shape="rect" id="node15" href="group__cache.html#ga8d1f1d2c3b355a7f129d9cd6f7da2b52" title="Remove object from cache." alt="" coords="782,107,917,133"/><area shape="rect" id="node17" href="group__hashtable.html#ga6946a161136a7fb529e80a6d4baa7fab" title="Remove object from hashtable." alt="" coords="965,56,1101,83"/><area shape="rect" id="node23" href="group__object.html#ga9905da094bf4c03cf4ac78aeaa86a12b" title="Release a reference from an object." alt="" coords="1165,107,1272,133"/><area shape="rect" id="node19" href="group__object.html#gafa9b3404ac70fd385d2837312fd38f6b" title="Generate object hash key." alt="" coords="1153,5,1285,32"/><area shape="rect" id="node21" href="group__object.html#gaab17e2f7a53ad9eb9cae3d0a60e41074" title="Check if the identifiers of two objects are identical." alt="" coords="1149,56,1288,83"/><area shape="rect" id="node25" href="group__object.html#gabf3bc276bb9102f83fc96d299b6b03ce" title="Free a cacheable object." alt="" coords="1337,132,1447,159"/></map>
</div>
</p>

<p><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="group__genl__ctrl_ga6fc84115fec64211423b4370f8814f7f_icgraph.png" border="0" usemap="#group__genl__ctrl_ga6fc84115fec64211423b4370f8814f7f_icgraph" alt=""/></div>
<map name="group__genl__ctrl_ga6fc84115fec64211423b4370f8814f7f_icgraph" id="group__genl__ctrl_ga6fc84115fec64211423b4370f8814f7f_icgraph">
<area shape="rect" id="node3" href="group__genl__mngt.html#ga3ab05512be640f87fb4971ee48066859" title="Resolve all registered Generic Netlink families." alt="" coords="211,5,354,32"/><area shape="rect" id="node5" href="group__genl__mngt.html#ga70d81ab6966182cee78c91ec4b5edb2a" title="Resolve a single Generic Netlink family." alt="" coords="217,56,349,83"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga0b2f0bb288b9e0f4ad3159a5db881e27"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">struct genl_family* genl_ctrl_search </td>
          <td>(</td>
          <td class="paramtype">struct nl_cache *&#160;</td>
          <td class="paramname"><em>cache</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Search controller cache for a numeric address match. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">cache</td><td>Controller cache </td></tr>
    <tr><td class="paramname">id</td><td>Numeric family identifier.</td></tr>
  </table>
  </dd>
</dl>
<p>Searches a previously allocated controller cache and looks for an entry that matches the specified numeric family identifier <code>id</code>. If a match is found successfully, the reference count of the matching object is increased by one before the objet is returned.</p>
<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__genl__ctrl.html#ga6fc84115fec64211423b4370f8814f7f" title="Allocate a new controller cache.">genl_ctrl_alloc_cache()</a> </dd>
<dd>
<a class="el" href="group__genl__ctrl.html#ga8546fd167091c03774f530bc56e8e544" title="Search controller cache for a family name match.">genl_ctrl_search_by_name()</a> </dd>
<dd>
<a class="el" href="group__genl__family.html#ga618e2a8a00ce959db7e474ac181f5468" title="Release reference on Generic Netlink family object.">genl_family_put()</a></dd></dl>
<dl class="section return"><dt>Returns:</dt><dd>Generic Netlink family object or NULL if no match was found. </dd></dl>

<p>Definition at line <a class="el" href="ctrl_8c_source.html#l00349">349</a> of file <a class="el" href="ctrl_8c_source.html">ctrl.c</a>.</p>

<p>References <a class="el" href="object_8c_source.html#l00195">nl_object_get()</a>.</p>

<p><div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><img src="group__genl__ctrl_ga0b2f0bb288b9e0f4ad3159a5db881e27_cgraph.png" border="0" usemap="#group__genl__ctrl_ga0b2f0bb288b9e0f4ad3159a5db881e27_cgraph" alt=""/></div>
<map name="group__genl__ctrl_ga0b2f0bb288b9e0f4ad3159a5db881e27_cgraph" id="group__genl__ctrl_ga0b2f0bb288b9e0f4ad3159a5db881e27_cgraph">
<area shape="rect" id="node3" href="group__object.html#gabd5767ac47ec6f09d1ac643f44eb8bfd" title="Acquire a reference on a object." alt="" coords="181,5,288,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga8546fd167091c03774f530bc56e8e544"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">struct genl_family* genl_ctrl_search_by_name </td>
          <td>(</td>
          <td class="paramtype">struct nl_cache *&#160;</td>
          <td class="paramname"><em>cache</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Search controller cache for a family name match. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">cache</td><td>Controller cache </td></tr>
    <tr><td class="paramname">name</td><td>Name of Generic Netlink family</td></tr>
  </table>
  </dd>
</dl>
<p>Searches a previously allocated controller cache and looks for an entry that matches the specified family <code>name</code>. If a match is found successfully, the reference count of the matching object is increased by one before the objet is returned.</p>
<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__genl__ctrl.html#ga6fc84115fec64211423b4370f8814f7f" title="Allocate a new controller cache.">genl_ctrl_alloc_cache()</a> </dd>
<dd>
<a class="el" href="group__genl__ctrl.html#ga0b2f0bb288b9e0f4ad3159a5db881e27" title="Search controller cache for a numeric address match.">genl_ctrl_search()</a> </dd>
<dd>
<a class="el" href="group__genl__family.html#ga618e2a8a00ce959db7e474ac181f5468" title="Release reference on Generic Netlink family object.">genl_family_put()</a></dd></dl>
<dl class="section return"><dt>Returns:</dt><dd>Generic Netlink family object or NULL if no match was found. </dd></dl>

<p>Definition at line <a class="el" href="ctrl_8c_source.html#l00382">382</a> of file <a class="el" href="ctrl_8c_source.html">ctrl.c</a>.</p>

<p>References <a class="el" href="object_8c_source.html#l00195">nl_object_get()</a>.</p>

<p><div id="dynsection-3" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-3-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><img src="group__genl__ctrl_ga8546fd167091c03774f530bc56e8e544_cgraph.png" border="0" usemap="#group__genl__ctrl_ga8546fd167091c03774f530bc56e8e544_cgraph" alt=""/></div>
<map name="group__genl__ctrl_ga8546fd167091c03774f530bc56e8e544_cgraph" id="group__genl__ctrl_ga8546fd167091c03774f530bc56e8e544_cgraph">
<area shape="rect" id="node3" href="group__object.html#gabd5767ac47ec6f09d1ac643f44eb8bfd" title="Acquire a reference on a object." alt="" coords="245,5,352,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga5ead520cad5ee1a2f1411117121aa6dd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int genl_ctrl_resolve </td>
          <td>(</td>
          <td class="paramtype">struct nl_sock *&#160;</td>
          <td class="paramname"><em>sk</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Resolve Generic Netlink family name to numeric identifier. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">sk</td><td>Generic Netlink socket. </td></tr>
    <tr><td class="paramname">name</td><td>Name of Generic Netlink family</td></tr>
  </table>
  </dd>
</dl>
<p>Resolves the Generic Netlink family name to the corresponding numeric family identifier. This function queries the kernel directly, use <a class="el" href="group__genl__ctrl.html#ga8546fd167091c03774f530bc56e8e544" title="Search controller cache for a family name match.">genl_ctrl_search_by_name()</a> if you need to resolve multiple names.</p>
<dl class="section see"><dt>See also:</dt><dd><a class="el" href="group__genl__ctrl.html#ga8546fd167091c03774f530bc56e8e544" title="Search controller cache for a family name match.">genl_ctrl_search_by_name()</a></dd></dl>
<dl class="section return"><dt>Returns:</dt><dd>The numeric family identifier or a negative error code. </dd></dl>

<p>Definition at line <a class="el" href="ctrl_8c_source.html#l00424">424</a> of file <a class="el" href="ctrl_8c_source.html">ctrl.c</a>.</p>

<p>References <a class="el" href="family_8c_source.html#l00213">genl_family_get_id()</a>, and <a class="el" href="family_8c_source.html#l00195">genl_family_put()</a>.</p>

<p><div id="dynsection-4" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-4-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-4-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-4-content" class="dyncontent" style="display:none;">
<div class="center"><img src="group__genl__ctrl_ga5ead520cad5ee1a2f1411117121aa6dd_cgraph.png" border="0" usemap="#group__genl__ctrl_ga5ead520cad5ee1a2f1411117121aa6dd_cgraph" alt=""/></div>
<map name="group__genl__ctrl_ga5ead520cad5ee1a2f1411117121aa6dd_cgraph" id="group__genl__ctrl_ga5ead520cad5ee1a2f1411117121aa6dd_cgraph">
<area shape="rect" id="node3" href="group__genl__family.html#gaa5529e4e23aef5435a52579732cbdbfd" title="Return numeric identifier." alt="" coords="185,5,325,32"/><area shape="rect" id="node5" href="group__genl__family.html#ga618e2a8a00ce959db7e474ac181f5468" title="Release reference on Generic Netlink family object." alt="" coords="193,56,316,83"/><area shape="rect" id="node7" href="group__object.html#ga9905da094bf4c03cf4ac78aeaa86a12b" title="Release a reference from an object." alt="" coords="373,56,480,83"/><area shape="rect" id="node9" href="group__object.html#gabf3bc276bb9102f83fc96d299b6b03ce" title="Free a cacheable object." alt="" coords="529,5,639,32"/><area shape="rect" id="node11" href="group__cache.html#ga8d1f1d2c3b355a7f129d9cd6f7da2b52" title="Remove object from cache." alt="" coords="689,56,823,83"/><area shape="rect" id="node13" href="group__hashtable.html#ga6946a161136a7fb529e80a6d4baa7fab" title="Remove object from hashtable." alt="" coords="872,81,1008,108"/><area shape="rect" id="node15" href="group__object.html#gafa9b3404ac70fd385d2837312fd38f6b" title="Generate object hash key." alt="" coords="1059,56,1191,83"/><area shape="rect" id="node17" href="group__object.html#gaab17e2f7a53ad9eb9cae3d0a60e41074" title="Check if the identifiers of two objects are identical." alt="" coords="1056,107,1195,133"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="gae4be9d99838db33cabc818cd6db6e26c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int genl_ctrl_resolve_grp </td>
          <td>(</td>
          <td class="paramtype">struct nl_sock *&#160;</td>
          <td class="paramname"><em>sk</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>family_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>grp_name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Resolve Generic Netlink family group name. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">sk</td><td>Generic Netlink socket </td></tr>
    <tr><td class="paramname">family_name</td><td>Name of Generic Netlink family </td></tr>
    <tr><td class="paramname">grp_name</td><td>Name of group to resolve</td></tr>
  </table>
  </dd>
</dl>
<p>Looks up the family object and resolves the group name to the numeric group identifier.</p>
<dl class="section return"><dt>Returns:</dt><dd>Numeric group identifier or a negative error code. </dd></dl>

<p>Definition at line <a class="el" href="ctrl_8c_source.html#l00466">466</a> of file <a class="el" href="ctrl_8c_source.html">ctrl.c</a>.</p>

<p>References <a class="el" href="family_8c_source.html#l00195">genl_family_put()</a>.</p>

<p><div id="dynsection-5" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-5-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-5-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-5-content" class="dyncontent" style="display:none;">
<div class="center"><img src="group__genl__ctrl_gae4be9d99838db33cabc818cd6db6e26c_cgraph.png" border="0" usemap="#group__genl__ctrl_gae4be9d99838db33cabc818cd6db6e26c_cgraph" alt=""/></div>
<map name="group__genl__ctrl_gae4be9d99838db33cabc818cd6db6e26c_cgraph" id="group__genl__ctrl_gae4be9d99838db33cabc818cd6db6e26c_cgraph">
<area shape="rect" id="node3" href="group__genl__family.html#ga618e2a8a00ce959db7e474ac181f5468" title="Release reference on Generic Netlink family object." alt="" coords="211,56,333,83"/><area shape="rect" id="node5" href="group__object.html#ga9905da094bf4c03cf4ac78aeaa86a12b" title="Release a reference from an object." alt="" coords="381,56,488,83"/><area shape="rect" id="node7" href="group__object.html#gabf3bc276bb9102f83fc96d299b6b03ce" title="Free a cacheable object." alt="" coords="537,5,647,32"/><area shape="rect" id="node9" href="group__cache.html#ga8d1f1d2c3b355a7f129d9cd6f7da2b52" title="Remove object from cache." alt="" coords="697,56,831,83"/><area shape="rect" id="node11" href="group__hashtable.html#ga6946a161136a7fb529e80a6d4baa7fab" title="Remove object from hashtable." alt="" coords="880,81,1016,108"/><area shape="rect" id="node13" href="group__object.html#gafa9b3404ac70fd385d2837312fd38f6b" title="Generate object hash key." alt="" coords="1067,56,1199,83"/><area shape="rect" id="node15" href="group__object.html#gaab17e2f7a53ad9eb9cae3d0a60e41074" title="Check if the identifiers of two objects are identical." alt="" coords="1064,107,1203,133"/></map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Thu Jan 24 2013 14:39:29 for libnl by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1.1 </li>
  </ul>
</div>
</body>
</html>