Losing the magic
Losing the magic
Posted Dec 6, 2022 14:15 UTC (Tue) by sima (subscriber, #160698)In reply to: Losing the magic by marcH
Parent article: Losing the magic
Tons of places have moved to container_of and struct embedded, and away from void*. It's not really more typesafe when you try to get things intentionally wrong, but it does help a lot with silly mistakes and "oops wrong offset" screwups.
But yeah relative amount of void* might be an interesting metric to see whether the conjecture that the kernel moved towards more type safety actually holds.
