---
name: "clk_has_parent"
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_has_parent"
---

# clk\_has\_parent(9)

check if a clock is a possible parent for another

## NAME

clk\_has\_parent - check if a clock is a possible parent for another

## SYNOPSIS

**bool clk\_has\_parent(struct clk \*** *clk***, struct clk \*** *parent***);**

## ARGUMENTS

*clk*

clock source

*parent*

parent clock source

## DESCRIPTION

This function can be used in drivers that need to check that a clock can be the parent of another without actually changing the parent.

Returns true if *parent* is a possible parent for *clk*, false otherwise.

## COPYRIGHT
