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)
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
Unknown Object (File)
Aug 31 2024, 12:00 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