---
name: "bus_generic_shutdown"
section: "9"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/bus_generic_shutdown"
---

# bus\_generic\_shutdown(9)

generic implementation of DEVICE\_SHUTDOWN for buses

## NAME

**bus\_generic\_shutdown** – generic implementation of DEVICE\_SHUTDOWN for buses

## SYNOPSIS

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

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

*int*\

**bus\_generic\_shutdown**(*device\_t dev*);

## DESCRIPTION

This function provides an implementation of the [DEVICE\_SHUTDOWN(9)](/DEVICE_SHUTDOWN/9.md) method which can be used by most bus code. It simply calls the [DEVICE\_SHUTDOWN(9)](/DEVICE_SHUTDOWN/9.md) method of each child device attached to the bus.

## RETURN VALUES

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

## SEE ALSO

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

## AUTHORS

This manual page was written by Doug Rabson.
