1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>clk_get_sys</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The Linux Kernel API"><link rel="up" href="clk.html" title="Chapter 17. Clock Framework"><link rel="prev" href="API-clk-get-parent.html" title="clk_get_parent"><link rel="next" href="API-clk-add-alias.html" title="clk_add_alias"></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"><span class="phrase">clk_get_sys</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-clk-get-parent.html">Prev</a> </td><th width="60%" align="center">Chapter 17. Clock Framework</th><td width="20%" align="right"> <a accesskey="n" href="API-clk-add-alias.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-clk-get-sys"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>clk_get_sys — 2 get a clock based upon the device name 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">struct clk * <b class="fsfunc">clk_get_sys </b>(</code></td><td>const char * <var class="pdparam">dev_id</var>, </td></tr><tr><td> </td><td>const char * <var class="pdparam">con_id</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1129396508"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>dev_id</code></em></span></dt><dd><p> 4 device name 5 </p></dd><dt><span class="term"><em class="parameter"><code>con_id</code></em></span></dt><dd><p> 6 connection ID 7 </p></dd></dl></div></div><div class="refsect1"><a name="idp1129399132"></a><h2>Description</h2><p> 8 Returns a struct clk corresponding to the clock producer, or 9 valid <code class="function">IS_ERR</code> condition containing errno. The implementation 10 uses <em class="parameter"><code>dev_id</code></em> and <em class="parameter"><code>con_id</code></em> to determine the clock consumer, and 11 thereby the clock producer. In contrast to <code class="function">clk_get</code> this function 12 takes the device name instead of the device itself for identification. 13 </p><p> 14 15 Drivers must assume that the clock source is not enabled. 16 </p><p> 17 18 clk_get_sys should not be called from within interrupt context. 19</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-clk-get-parent.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="clk.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-clk-add-alias.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">clk_get_parent</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">clk_add_alias</span></td></tr></table></div></body></html> 20