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)
Sun, Jun 7, 6:40 AM
Unknown Object (File)
Sat, Jun 6, 9:39 AM
Unknown Object (File)
Fri, Jun 5, 9:02 PM
Unknown Object (File)
Thu, Jun 4, 5:45 AM
Unknown Object (File)
Wed, May 13, 10:12 PM
Unknown Object (File)
Wed, May 13, 10:12 PM
Unknown Object (File)
Wed, May 13, 10:05 PM
Unknown Object (File)
May 5 2026, 1: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