---
name: "DEVICE_SHUTDOWN"
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_SHUTDOWN"
---

# DEVICE\_SHUTDOWN(9)

called during system shutdown

## NAME

**DEVICE\_SHUTDOWN** – called during system shutdown

## SYNOPSIS

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

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

*int*\

**DEVICE\_SHUTDOWN**(*device\_t dev*);

## DESCRIPTION

The **DEVICE\_SHUTDOWN**() method is called during system shutdown to allow the driver to put the hardware into a consistent state for rebooting the computer.

## RETURN VALUES

Zero is returned on success, otherwise an error is returned.

## SEE ALSO

[device(9)](/device/9.md), [DEVICE\_ATTACH(9)](/DEVICE_ATTACH/9.md), [DEVICE\_DETACH(9)](/DEVICE_DETACH/9.md), [DEVICE\_IDENTIFY(9)](/DEVICE_IDENTIFY/9.md), [DEVICE\_PROBE(9)](/DEVICE_PROBE/9.md)

## AUTHORS

This manual page was written by Doug Rabson.
