---
name: "device_set_flags"
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/device_get_flags"
---

# device\_set\_flags(9)

manipulate driver flags

Part of [device\_get\_flags(9)](/device_get_flags/9.md).

## NAME

**device\_set\_flags**, **device\_get\_flags** – manipulate driver flags

## SYNOPSIS

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

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

*void*\

**device\_set\_flags**(*device\_t dev*, *uint32\_t flags*);

*uint32\_t*\

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

## DESCRIPTION

Each device supports a set of driver-dependent flags which are often used to control device behaviour. These flags are read by calling **device\_get\_flags**() and written by calling **device\_set\_flags**().

## SEE ALSO

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

## AUTHORS

This manual page was written by Doug Rabson.
