]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pbio: Store softc in si_drv1 for character devices.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 5 May 2022 23:38:25 +0000 (16:38 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 5 May 2022 23:38:25 +0000 (16:38 -0700)
commit0db65574bbb9e379ebf3ce027fc7607fdc9118fd
treeb88dc662b60bcc42e6046c570c27f547495eb48e
parente4ec982c75e3b31758de11a103f0f6bcd4fda10e
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
sys/dev/pbio/pbio.c