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
F97768205: D35078.diff
Tue, Oct 1, 4:46 AM
Unknown Object (File)
Tue, Sep 24, 9:01 AM
Unknown Object (File)
Sun, Sep 22, 6:47 PM
Unknown Object (File)
Sun, Sep 22, 12:52 PM
Unknown Object (File)
Wed, Sep 18, 5:09 PM
Unknown Object (File)
Fri, Sep 6, 12:17 AM
Unknown Object (File)
Thu, Sep 5, 8:49 PM
Unknown Object (File)
Tue, Sep 3, 12:01 PM
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