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)
Sat, Oct 3, 8:08 AM
Unknown Object (File)
Fri, Sep 25, 9:06 AM
Unknown Object (File)
Fri, Sep 25, 8:07 AM
Unknown Object (File)
Sat, Sep 12, 10:45 AM
Unknown Object (File)
Sat, Sep 12, 10:27 AM
Unknown Object (File)
Sat, Sep 12, 10:19 AM
Unknown Object (File)
Fri, Sep 11, 6:28 AM
Unknown Object (File)
Fri, Sep 11, 2:24 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