Page MenuHomeFreeBSD

DEVICE_IDENTIFY.9: Modernize description and use cases
ClosedPublic

Authored by jhb on Jan 7 2025, 5:05 PM.
Tags
None
Referenced Files
F109826199: D48367.id149013.diff
Mon, Feb 10, 12:58 AM
Unknown Object (File)
Wed, Feb 5, 10:58 AM
Unknown Object (File)
Tue, Feb 4, 6:01 AM
Unknown Object (File)
Sat, Feb 1, 5:20 PM
Unknown Object (File)
Sun, Jan 26, 12:17 AM
Unknown Object (File)
Fri, Jan 24, 4:27 PM
Unknown Object (File)
Wed, Jan 15, 4:41 PM
Unknown Object (File)
Wed, Jan 15, 3:53 AM
Subscribers

Details

Summary

Mention adding devices based on firmware tables and software-only
pseudo-devices as use cases for identify methods as those are more
common than reading random I/O ports to identify a legacy ISA device.

Describe how device_find_chid can be used to avoid duplicates. While
here, explicitly note that devices added in identify methods typically
use a fixed device name.

Trim the cross-references a bit.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ziaee added a subscriber: ziaee.
ziaee added inline comments.
share/man/man9/DEVICE_IDENTIFY.9
34

Wow this seems way better!

87

Sir, I see device_get_children but not device_get_child on current from yesterday.

Couple of nits,but it's so much better

share/man/man9/DEVICE_IDENTIFY.9
43

in various ways?

50–53

Extra space?

This revision is now accepted and ready to land.Jan 8 2025, 2:12 AM
share/man/man9/DEVICE_IDENTIFY.9
87

It's added in a commit later in this stack

jhb marked 3 inline comments as done.Jan 9 2025, 8:18 PM
jhb added inline comments.
share/man/man9/DEVICE_IDENTIFY.9
87

Oh, this is supposed to be device_find_child