---
name: "device_get_parent"
section: "9"
platform: "linux"
package: "freebsd-manpages"
version: "6.0-5"
release: "Debian 4.0 (Etch)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/device_get_parent"
---

# device\_get\_parent(9)

return the device's parent

## NAME

**device\_get\_parent** – return the device's parent

## SYNOPSIS

**#include \<sys/param.h\>**

**#include \<sys/bus.h\>**

*device\_t*\

**device\_get\_parent**(*device\_t dev*);

## DESCRIPTION

The **device\_get\_parent**() function returns the name of the device's parent device.

## SEE ALSO

[device(9)](/device/9.md)

## AUTHORS

This manual page was written by Warner Losh.
