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, Oct 12, 12:43 PM
Unknown Object (File)
Sun, Oct 12, 12:42 PM
Unknown Object (File)
Sun, Oct 12, 12:42 PM
Unknown Object (File)
Sun, Oct 12, 12:42 PM
Unknown Object (File)
Sun, Oct 12, 9:49 AM
Unknown Object (File)
Sun, Oct 12, 1:46 AM
Unknown Object (File)
Fri, Oct 10, 7:15 AM
Unknown Object (File)
Fri, Oct 10, 6:12 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