GOTO Statements in Linux Kernel Source
GOTO Statements in Linux Kernel Source

If you are a student you may come across a term called structured programming. Which actually means you write a smooth flow of code and whenever required you steer the flow of code via APIs (i.e functions) (either internal helper APIs or external APIs). As a part of structured programming paradigm it is highly discouraged to use goto statements in the code.

But if you look at Linux Kernel source-code you find almost everywhere goto statements. Here is my detailed YouTube video in which I discuss the reasons why goto statements are used in Linux Kernel source. And I also share some insights where it is highly advantageous to use goto statements in a serious company production code. Provided you know these reasons and tricks 🤗

Visit suggested websites: ↗ ↗

I also conduct sessions/classes on Systems and Network Software Programming, Linux Kernel Programming and Architecture. If you are interested, click HERE for more details.

If you have any queries or anything to discuss further on Linux Kernel Programming and writing Kernel modules kindly feel free to contact me.

Leave a Reply

Your email address will not be published. Required fields are marked *