Page MenuHomeFreeBSD

pci: Cosmetic cleanups to MSI/MSI-X routines
Needs ReviewPublic

Authored by jhb on Fri, Feb 7, 5:28 PM.

Details

Summary
  • Use unsigned integers for various variables. The count argument to the alloc method as well as the IRQ values used with the pcib_if.m methods should also be unsigned eventually.
  • Use mallocarray to allocate arrays
  • Use bool in a few places

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62298
Build 59182: arc lint + arc unit

Event Timeline

sys/dev/pci/pci.c
2023

Have you considered using bitstring instead?