1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>clk_is_match</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-phase.html" title="clk_get_phase"><link rel="next" href="API-clk-prepare.html" title="clk_prepare"></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_is_match</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-clk-get-phase.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-prepare.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-clk-is-match"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>clk_is_match — 2 check if two clk's point to the same hardware clock 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">bool <b class="fsfunc">clk_is_match </b>(</code></td><td>const struct clk * <var class="pdparam">p</var>, </td></tr><tr><td> </td><td>const struct clk * <var class="pdparam">q</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1129243276"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>p</code></em></span></dt><dd><p> 4 clk compared against q 5 </p></dd><dt><span class="term"><em class="parameter"><code>q</code></em></span></dt><dd><p> 6 clk compared against p 7 </p></dd></dl></div></div><div class="refsect1"><a name="idp1129245884"></a><h2>Description</h2><p> 8 Returns true if the two struct clk pointers both point to the same hardware 9 clock node. Put differently, returns true if struct clk *p and struct clk *q 10 share the same struct clk_core object. 11 </p><p> 12 13 Returns false otherwise. Note that two NULL clks are treated as matching. 14</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-phase.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-prepare.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">clk_get_phase</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_prepare</span></td></tr></table></div></body></html> 15