Page MenuHomeFreeBSD

chore: replace {0, 0} with {DEV,KOBJ}METHOD_END where appropriate
ClosedPublic

Authored by ngie on Feb 21 2026, 6:22 AM.
Tags
None
Referenced Files
F153006608: D55414.id.diff
Sat, Apr 18, 2:31 PM
F152962171: D55414.id172364.diff
Sat, Apr 18, 8:45 AM
Unknown Object (File)
Wed, Apr 8, 9:51 AM
Unknown Object (File)
Sun, Apr 5, 1:09 PM
Unknown Object (File)
Mar 17 2026, 4:32 PM
Unknown Object (File)
Mar 16 2026, 12:32 PM
Unknown Object (File)
Mar 16 2026, 5:58 AM
Unknown Object (File)
Mar 11 2026, 10:30 AM

Details

Reviewers
slm
jaeyoon
jhb
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rG0fc6c3f731a2: chore: replace {0, 0} with {DEV,KOBJ}METHOD_END
Summary

Both of the aforementioned macros have been present in FreeBSD
for well over a decade: 2009 for KOBJMETHOD_END; 2011 for
DEVMETHOD_END.

Adapt all hardcoded references of {0, 0} with DEVMETHOD_END
and KOBJMETHOD_END as appropriate. This helps ensure that
future adaptations to drivers following patterns documented
in driver(9) can be made more easily/without issue.

MFC after: 1 week

Test Plan
  • This change boots on my MacBook13,2 (which uses a limited of drivers touched here).

TODO: a full tinderbox build is in progress.

Diff Detail

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

Event Timeline

Owners added a reviewer: Restricted Owners Package.Feb 21 2026, 6:22 AM
ngie requested review of this revision.Feb 21 2026, 6:22 AM
ngie retitled this revision from chore: replace {0, 0} with {DEVMETHOD,KOBJ}_END where appropriate to chore: replace {0, 0} with {DEVMETHOD,KOBJMETHOD}_END where appropriate.Feb 21 2026, 6:43 PM
ngie edited the summary of this revision. (Show Details)
ngie added subscribers: jhb, markj.
ngie retitled this revision from chore: replace {0, 0} with {DEVMETHOD,KOBJMETHOD}_END where appropriate to chore: replace {0, 0} with {DEV,KOBJ}METHOD_END where appropriate.Feb 21 2026, 7:05 PM

These all look good to me.

This revision is now accepted and ready to land.Feb 25 2026, 2:16 AM
This revision was automatically updated to reflect the committed changes.

I had commits for nearly all of these handy, but I'm lacking a commit bit. Worse I'm starving for committer bandwidth so I end up prioritizing higher-importance commits over cleanup. I've got lots more of this handy in association with D48449, just need someone I can hand it off too.