---
name: "clk_is_match"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/clk_is_match"
---

# clk\_is\_match(9)

check if two clk's point to the same hardware clock

## NAME

clk\_is\_match - check if two clk's point to the same hardware clock

## SYNOPSIS

**bool clk\_is\_match(const struct clk \*** *p***, const struct clk \*** *q***);**

## ARGUMENTS

*p*

clk compared against q

*q*

clk compared against p

## DESCRIPTION

Returns true if the two struct clk pointers both point to the same hardware clock node. Put differently, returns true if struct clk \*p and struct clk \*q share the same struct clk\_core object.

Returns false otherwise. Note that two NULL clks are treated as matching.

## COPYRIGHT
