Is using "typedef" in union definition bad according to Linux kernel coding style?

by curious_penguin   Last Updated April 15, 2019 10:05 AM

I am trying to write my code using the Linux kernel coding style as the guide. In this guide there are clear indications about when to use "typedef" and when to not use them, but it only references structures or pointers: https://www.kernel.org/doc/html/v4.10/process/coding-style.html

Will these rules apply for unions or enums, for example? If yes, for the same reasons or different ones?

I found this question which doesn't quite answer my question in the general sense: When to use typedef?

I apologize if this question is not suitable for this site. If that is tha case can you please direct me to where I might ask this?



Related Questions


Is creativity important for software developers?

Updated September 18, 2018 23:05 PM


Working on someone else's code

Updated September 12, 2018 19:05 PM

Defensive Programming - "Return" placement

Updated June 03, 2015 23:02 PM