Page MenuHomeFreeBSD

intrcompat: rename "machine/intr*.h" to "machine/a_bikeshed_string_for_sed_to_target.h"
Needs ReviewPublic

Authored by ehem_freebsd_m5p.com on Jun 23 2022, 1:27 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 21, 3:48 PM
Unknown Object (File)
Fri, Oct 18, 10:15 AM
Unknown Object (File)
Thu, Oct 17, 9:21 AM
Unknown Object (File)
Tue, Oct 15, 9:57 PM
Unknown Object (File)
Sun, Oct 13, 10:16 PM
Unknown Object (File)
Sun, Oct 13, 4:37 AM
Unknown Object (File)
Sat, Oct 12, 2:47 PM
Unknown Object (File)
Fri, Oct 11, 6:51 AM

Details

Summary

Having two distinct names for the interrupt headers serves to interfere
with most efforts to converge the interrupt frameworks. Simply rename
all of them to "machine/a_bikeshed_string_for_sed_to_target.h". Another name could be substituted,
but right now simply have a random one for this commit.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 60078
Build 56962: arc lint + arc unit

Event Timeline

So the theory is to continue pushing the various interrupt handling implementations closer together. I suspect the INTRNG team may have thought "intr.h" would distinguish their system as being potentially machine-independent, but I think this simply serves to inhibit merging.

As such a case of choosing "intr.h" versus "intr_machdep.h". I think "machine/intr.h" is better as "machine/" already marks them as potentially having architecture quirks. Ideally their similarity will increase, but this will take a while.

If it is felt __FreeBSD_version should be incremented and then check for header name, I've got that prepared. Simply an issue of need a reviewer to request that be done.

I was under the impression D35559 has the right reviewers, but no action has been observed. This is meant as a precursor to the updated D32504. This can improve several places, but does need someone to okay (and commit to the main tree). Then there are the child commits.

Ping for D35559. This will be in the way of most attempts to further merge the interrupt interfaces, so deciding the direction would be helpful.

So, most approaches to getting interrupt subsystems to converge are going to need something along the lines of D35559 at some point. Might it be possible to get a decision/activity on D35559?

My thinking was the shorter name machine/intr.h was better, since being in machine already marks the header as being potentially variable from architecture to architecture. Yet the opposite direction of moving arm(64)'s headers to machine/intr_machdep.h would also work. This really needs a decision as forward progress on convergence might be possible if there was activity here.

intrcompat: rename "machine/intr*.h" to "machine/a_bikeshed_string_for_sed_to_target.h"

Having two distinct names for the interrupt headers serves to interfere with most efforts to converge the interrupt frameworks. Simply rename all of them to "machine/a_bikeshed_string_for_sed_to_target.h". Another name could be substituted, but right now simply have a random one for this commit.

ehem_freebsd_m5p.com retitled this revision from intr: rename "machine/intr_machdep.h" headers to "machine/intr.h" to intrcompat: rename "machine/intr*.h" to "machine/a_bikeshed_string_for_Sed.Fri, Oct 18, 10:07 PM
ehem_freebsd_m5p.com edited the summary of this revision. (Show Details)
ehem_freebsd_m5p.com retitled this revision from intrcompat: rename "machine/intr*.h" to "machine/a_bikeshed_string_for_Sed to intrcompat: rename "machine/intr*.h" to "machine/a_bikeshed_string_for_sed_to_target.h".Fri, Oct 18, 10:15 PM

If someone is up for forward progress on this trivial issue, I recommend doing: (assuming your remote for FreeBSD-Github is "github")

git fetch github refs/pull/1431/head
git cherry-pick 7f0f39b57d08b14420823e7276c9222f37886468

This will likely need an update as files get renamed or modified on a routine basis. Since the Github branch was last updated 2 months ago, it will need (hopefully minor) adjustment.