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
F153094541: D35078.diff
Sun, Apr 19, 2:37 AM
Unknown Object (File)
Fri, Apr 17, 7:13 AM
Unknown Object (File)
Mon, Apr 13, 9:01 PM
Unknown Object (File)
Mon, Apr 13, 9:01 PM
Unknown Object (File)
Mon, Apr 13, 9:01 PM
Unknown Object (File)
Mon, Apr 13, 9:01 PM
Unknown Object (File)
Sun, Apr 12, 5:42 PM
Unknown Object (File)
Fri, Apr 10, 9:03 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