Page MenuHomeFreeBSD

pbio: Store softc in si_drv1 for character devices.
ClosedPublic

Authored by jhb on Apr 27 2022, 3:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Aug 12, 4:12 PM
Unknown Object (File)
Mon, Aug 10, 9:41 PM
Unknown Object (File)
Mon, Aug 10, 5:42 AM
Unknown Object (File)
Mon, Aug 10, 12:55 AM
Unknown Object (File)
Sat, Aug 8, 3:06 AM
Unknown Object (File)
Fri, Aug 7, 3:27 PM
Unknown Object (File)
Fri, Aug 7, 1:33 AM
Unknown Object (File)
Thu, Jul 30, 11:14 AM
Subscribers
None

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable