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)
Wed, May 13, 10:12 PM
Unknown Object (File)
Wed, May 13, 10:12 PM
Unknown Object (File)
Wed, May 13, 10:05 PM
Unknown Object (File)
Tue, May 5, 1:14 AM
Unknown Object (File)
Mon, Apr 27, 4:08 PM
Unknown Object (File)
Mon, Apr 27, 12:56 PM
Unknown Object (File)
Apr 19 2026, 2:37 AM
Unknown Object (File)
Apr 17 2026, 7:13 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