HomeFreeBSD

pbio: Store softc in si_drv1 for character devices.

Description

pbio: Store softc in si_drv1 for character devices.

The port number is still stored in the unit (si_drv0) but is the
entire unit value now.

While here, removed checks for NULL softc since those can never happen
from cdevsw routines. This also resulted in the close method becoming
a no-op, so it has been removed.

Differential Revision: https://reviews.freebsd.org/D35078

Details

Provenance
jhbAuthored on May 5 2022, 11:38 PM
Differential Revision
D35078: pbio: Store softc in si_drv1 for character devices.
Parents
rGe4ec982c75e3: tdfx: Initialize tdfx_devclass via a module event handler.
Branches
Unknown
Tags
Unknown