---
name: "device_pm_set_parent"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/device_pm_set_parent"
---

# device\_pm\_set\_parent(9)

Specify power dependency.

## NAME

device\_pm\_set\_parent - Specify power dependency.

## SYNOPSIS

**void device\_pm\_set\_parent(struct device \*** *dev***, struct device \*** *parent***);**

## ARGUMENTS

*dev*

Device who needs power.

*parent*

Device that supplies power.

## DESCRIPTION

This function is used to manually describe a power-dependency relationship. It may be used to specify a transversal relationship (where the power supplier is not the physical (or electrical) ancestor of a specific device. The effect of this is that the supplier will not be powered down before the power dependent.

## COPYRIGHT
