This will be used to put SYSINITs onto a linked list.
Sponsored by: https://www.patreon.com/cperciva
Differential D41074
struct sysinit: Add SLIST_ENTRY(sysinit) next cperciva on Jul 19 2023, 12:59 AM. Authored by Tags None Referenced Files
Details
This will be used to put SYSINITs onto a linked list. Sponsored by: https://www.patreon.com/cperciva
Diff Detail
Event TimelineComment Actions Any reason for putting it in the middle vs the end? I guess the assumption is that to the extent any performance matters at all you are only going to read func and ident once, but the others you will read multiple times while sorting? Comment Actions Yeah, I was thinking in terms of having the subsystem/order/next fields in the same cache line. Although on most CPUs the entire structure probably fits in one cache line now, so maybe it didn't accomplish anything. Comment Actions Good question. I don't know what the policy is, but yeah bad things will happen if we try to load a module with a different struct sysinit layout. I'll bump __FreeBSD_version. |