HomeFreeBSD

Fixes and updates for the Linux compatibility layer:

Description

Fixes and updates for the Linux compatibility layer:

  • Remove unsupported "bus" field from "struct pci_dev".
  • Fix logic inside "pci_enable_msix()" when the number of allocated interrupts are less than the number of available interrupts.
  • Update header files included from "list.h".
  • Ensure that "idr_destroy()" removes all entries before destroying the IDR root node(s).
  • Set the "device->release" function so that we don't leak memory at device destruction.
  • Use FreeBSD's "log()" function for certain debug printouts.
  • Put parenthesis around arguments inside the min, max, min_t and max_t macros.
  • Make sure we don't leak file descriptors by dropping the extra file reference counts done by the FreeBSD kernel when calling falloc() and fget_unlocked().

MFC after: 1 week
Sponsored by: Mellanox Technologies

Details

Provenance
hselaskyAuthored on
Parents
rS276748: Fix kernel build after r276730.
Branches
Unknown
Tags
Unknown

Event Timeline