---
name: "struct_clk_notifier_data"
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/struct_clk_notifier_data"
---

# struct\_clk\_notifier\_data(9)

rate data to pass to the notifier callback

## NAME

struct\_clk\_notifier\_data - rate data to pass to the notifier callback

## SYNOPSIS

```
struct clk_notifier_data {
  struct clk * clk;
  unsigned long old_rate;
  unsigned long new_rate;
};
```

## MEMBERS

clk

struct clk \* being changed

old\_rate

previous rate of this clk

new\_rate

new rate of this clk

## DESCRIPTION

For a pre-notifier, old\_rate is the clk's rate before this rate change, and new\_rate is what the rate will be in the future. For a post-notifier, old\_rate and new\_rate are both set to the clk's current rate (this was done to optimize the implementation).

## COPYRIGHT
