---
name: "get_device"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/get_device"
---

# get\_device(9)

increment reference count for device.

## NAME

get\_device - increment reference count for device.

## SYNOPSIS

**struct device \* get\_device(struct device \*** *dev***);**

## ARGUMENTS

*dev*

device.

## DESCRIPTION

This simply forwards the call to **kobject\_get**, though we do take care to provide for the case that we get a NULL pointer passed in.

## COPYRIGHT
