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

(cherry picked from commit 0db65574bbb9e379ebf3ce027fc7607fdc9118fd)

Details

Provenance
jhbAuthored on May 5 2022, 11:38 PM
Differential Revision
D35078: pbio: Store softc in si_drv1 for character devices.
Parents
rGc7f0b91ba269: smapi: Store softc pointer in si_drv1 of cdev.
Branches
Unknown
Tags
Unknown