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
F137738637: D35078.diff
Tue, Nov 25, 8:26 AM
F137678722: D35078.id105467.diff
Mon, Nov 24, 9:28 PM
F137669399: D35078.id.diff
Mon, Nov 24, 8:44 PM
F137669382: D35078.id105726.diff
Mon, Nov 24, 8:44 PM
F137669284: D35078.diff
Mon, Nov 24, 8:43 PM
Unknown Object (File)
Thu, Nov 13, 4:15 PM
Unknown Object (File)
Thu, Nov 6, 9:00 AM
Unknown Object (File)
Thu, Nov 6, 12:32 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