Page MenuHomeFreeBSD

Use kdb_thr_from_pid() in db_lookup_thread().
ClosedPublic

Authored by jhb on Dec 29 2020, 11:52 PM.
Tags
None
Referenced Files
F137475976: D27828.id.diff
Sun, Nov 23, 7:49 PM
F137475972: D27828.id81344.diff
Sun, Nov 23, 7:49 PM
F137475560: D27828.id81453.diff
Sun, Nov 23, 7:45 PM
F137474998: D27828.diff
Sun, Nov 23, 7:38 PM
Unknown Object (File)
Sun, Nov 16, 7:55 AM
Unknown Object (File)
Fri, Oct 31, 4:13 AM
Unknown Object (File)
Oct 24 2025, 5:40 AM
Unknown Object (File)
Oct 24 2025, 5:40 AM
Subscribers

Details

Summary

The code is identical, so this should be a no-op.

Diff Detail

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

Event Timeline

jhb requested review of this revision.Dec 29 2020, 11:52 PM

Would it be improvement to check addr with IN_KERNEL() before assuming that it is the thread address ?

This revision is now accepted and ready to land.Dec 30 2020, 1:06 PM

Yes, doing INKERNEL() checks for both of these helpers likely makes sense, though I think as a separate commit.

This revision was automatically updated to reflect the committed changes.