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
F171648992: D35078.id105726.diff
Sat, Sep 12, 10:45 AM
F171647570: D35078.id105467.diff
Sat, Sep 12, 10:27 AM
F171646722: D35078.diff
Sat, Sep 12, 10:19 AM
Unknown Object (File)
Fri, Sep 11, 6:28 AM
Unknown Object (File)
Fri, Sep 11, 2:24 AM
Unknown Object (File)
Mon, Sep 7, 10:09 AM
Unknown Object (File)
Sun, Sep 6, 3:15 PM
Unknown Object (File)
Sun, Sep 6, 11:23 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45393
Build 42281: arc lint + arc unit