---
name: "clk_get_sys"
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_get_sys"
---

# clk\_get\_sys(9)

get a clock based upon the device name

## NAME

clk\_get\_sys - get a clock based upon the device name

## SYNOPSIS

**struct clk \* clk\_get\_sys(const char \*** *dev\_id***, const char \*** *con\_id***);**

## ARGUMENTS

*dev\_id*

device name

*con\_id*

connection ID

## DESCRIPTION

Returns a struct clk corresponding to the clock producer, or valid **IS\_ERR** condition containing errno. The implementation uses *dev\_id* and *con\_id* to determine the clock consumer, and thereby the clock producer. In contrast to **clk\_get** this function takes the device name instead of the device itself for identification.

Drivers must assume that the clock source is not enabled.

clk\_get\_sys should not be called from within interrupt context.

## COPYRIGHT
