> For the complete documentation index, see [llms.txt](https://man.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://man.bsdcn.org/man9/device_shutdown.9.md).

# DEVICE\_SHUTDOWN(9)

`DEVICE_SHUTDOWN` — 在系统关闭期间调用

## 名称

`DEVICE_SHUTDOWN`

## 概要

```c
#include <sys/param.h>

#include <sys/bus.h>

int
DEVICE_SHUTDOWN(device_t dev)
```

## 描述

`DEVICE_SHUTDOWN` 方法在系统关闭期间调用，允许驱动程序将硬件置于一致的状态以便重启计算机。

## 返回值

成功时返回零，否则返回错误。

## 参见

[device(9)](/man9/device.9.md), [DEVICE\_ATTACH(9)](/man9/device_attach.9.md), [DEVICE\_DETACH(9)](/man9/device_detach.9.md), [DEVICE\_IDENTIFY(9)](/man9/device_identify.9.md), [DEVICE\_PROBE(9)](/man9/device_probe.9.md)

## 作者

本手册页由 Doug Rabson 编写。
