---
name: "pci_try_set_mwi"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/pci_try_set_mwi"
---

# pci\_try\_set\_mwi(9)

enables memory-write-invalidate PCI transaction

## NAME

pci\_try\_set\_mwi - enables memory-write-invalidate PCI transaction

## SYNOPSIS

**int pci\_try\_set\_mwi(struct pci\_dev \*** *dev***);**

## ARGUMENTS

*dev*

the PCI device for which MWI is enabled

## DESCRIPTION

Enables the Memory-Write-Invalidate transaction in **PCI\_COMMAND**. Callers are not required to check the return value.

## RETURN

An appropriate -ERRNO error value on error, or zero for success.

## COPYRIGHT
