TODAY -

Kernel corner: Don't be a hypocrite with the Linux kernel

sinuxs *



I hear you say, "what the heck is this article?". Yes, I'm pretty serious with the title of this article. Please don't be a hypocrite with the Linux kernel especially if you really don't (and not intended to) know how it's working inside.

When the kernel is open source and people are not serious to go along with the source code and playing with the beautiful beast inside it and enjoy the junkies of all these, it's of no use to play hypocrisy by simply saying that Linux is open-source and I gotta install it (or have?) N number of times or whatever.

It is really a hypocrisy (seriously) when you couldn't walkthrough the kernel even a single source file (or assembly) and claiming and endorsing that Linux kernel is open-source and it ought to be a serious threat to Microsoft and alike and dot dot dot etc.

Linux kernel is open and free especially for hackers (or people who've a tendency to learn it) and *NOT* for people who couldn't have the stamina to look into under its hoods. What use(and meaningful) is the word *OPEN* when you cannot actually open and see it inside! That is the definition of *CLOSE* instead (unfortunately :-().

The kernel is fanatically an interesting field where, once you're inside it, you never know where your code flow is coming from and going to. Oftentimes, people use to say UNIX is the masterpiece software of this century ever created by mankind.

I, personally, don't appreciate this and various ideas of UNIX philosophy like, 'Everything is a File' etc. Rather, I\'m interested with the ways the ideas are implemented beautifully by pushing you eventually inside the code like a Matrix code glowing you around with those interwinded algorithms and data structures.

Jesus! this is heaven. I truly believe, this is one way to reach the heaven. Let's try to see whether we reach heaven or hell. You're booting your system up. The _POWER_SIGNAL_ goes to the Motherboard (if you don't have any problem with your Power supply) and ignites the M! otherboa rd chips (like North bridge, South Bridge, CMOS/RTC, Timer chips, SCSI drives/adapters, Super I/O, USB controller etc) and finally loading the processor registers that actually points to the first address of BIOS.

The BIOS checks and validates your available necesary hardwares (Memory, Video, I/O devices), populates the IVT(Interrupt vector table storing various drivers handlers) and ultimately load your kernel. The kernel image is in compress image(BZImage) having the GZIP decompression alogorithm at the start of it. The real mode initialization of the kernel takes place and finally it decompresses its image by jumping into the GZIP algorithm part and start loading to the first 1MB of the physical memory.

Whew!!! this is getting the heck out of me. See... we're seeing what is going under the hood when you're booting the machine. This is a lifetime opportunity we're getting such an open source code that we walkthrough and see the lines of what it's doing. Microsoft never ever given such a golden opportunity! Bingo! I shoot at the feets of Microsoft!

Oh, yeah, the kernel code is in real mode. In real mode it will do all necessary preapration so that it will jump to the protected mode. This peroid involves the setting up of important Intel architecure data structures like GDT, IDT IDT etc. You need to fill up all the entries of IDT - Exceptions (Fault/Trap/Abort) and Interrupts, otherwise, a message 'Unknown Inteerupts' will be displayed out. Fine. Then the kernel will set up the paging directory and initial page tables.

When all protected mode preparation are done, it'll jump to the protected mode by setting bits on CR0 processor register. Once the kernel is in protected mode, it'll initialize all kernel data structures one by one. It will replace all the 16 bit drivers of BIOS with the 32 bit ones. All the necessary device drivers intialization entry points will be called so the the physical devices and their drivers will be registered with the kernel.

The device driver faciliates two important fu! nctions - provide interfaces with the application through system calls AND interfaces with the device controller through Interrupts handlers. If you want to scratch a new device driver with the Linus kenel tree, you need to shoot a mail to him becasue he has frozen all the good device driver numbers. ha ha ha.

Oh, I've missed one important thing - the heartbeat of the kernel, the Timer chip setting. The kernel will calibrate the timer frequency and accordingly will interrupt for every HZ defined on it. Then the kernel will eventually initialzes all the manager - the memory manager, the process manager, the file manager, the I/O manager, the network manager etc.

The intial phase of the memory manager is the bootmem allocator. It's a simple first-fit memory management algorithm. Before, the kernel starts your main Buddy allocator, the bootmem allocator will be started. It basicaly marks all the reserved pages (noted by the BIOS functions like int 0xe820, int 0xe8201, int 0x88h) and usable pages.

And once the main memory manager is started, it'll copied all the data from the bootmem allocator and kill it sadistically. And when all the managers are in wheel, the kernel will fork off the first process - the init process and the rest is the history. If you're tempted to know in detail the above situation, at the minimal (with no guarantee) following understanding are in order:-
- Intel x86 architecture
- GNU assembly language
- Extended GNU inline assembly
- PC hardware (RTC/CMOS, Timer, 8259A/IOAPIC, DMA controller, North bridge/southbridge, Disk geometry,Video RAM/ROM, BIOS etc)
- BIOS booting phase
- Linux Loader (GRUB) code.
- Real mode/ protected mode Kernel context.
- Bash Scripts
- what else???


If you do not want to know these and no intention to learn them, please stop endorsing about Linux kernel. Because when we speak of Linux, it basically refers to the kernel, per Linus, and hence saying and endorsing something without experiencing/knowing/ enjoying them is fanatically a humiliation to the creator and developers of it.

Linus will laugh flat to the floor at this kind of hypocrisy. The kernel is a heaven. The kernel patch is written for every hour. Enjoy the bliss of this beautiful beast before it\'s too bloated and difficult to control with. The 2.4 version, per me, is the right version to start with.

I suggest the 2.4 version because it\'s the history of the 2.6 current version. Unless we know the history of a thing, how would we appreciate the beauty of its creation? Welcome to the real paradise!!!

Sign off,
[A kernel junky]


* sinuxs (A pseudonym and a "kernel junky" ) contributes to e-pao.net regularly. The writer can be contacted at sinuxs(at)yahoo(dot)com
This article was webcasted on October 12th, 2009.




* Comments posted by users in this discussion thread and other parts of this site are opinions of the individuals posting them (whose user ID is displayed alongside) and not the views of e-pao.net. We strongly recommend that users exercise responsibility, sensitivity and caution over language while writing your opinions which will be seen and read by other users. Please read a complete Guideline on using comments on this website.




LATEST IN E-PAO.NET
  • Lok Sabha polls in Manipur #2 : Gallery
  • Violence in Manipur 2023-2024 : Timeline
  • The Taj Mahal that bans Lovers !
  • Importance of bees !
  • Massive hailstorm in Jiribam
  • The messiah of hapless children
  • Attack on fuel tankers & blasting bridge
  • Blame it on Meetei
  • The Happiness Code : Download
  • NH-2 Bridge bombed @Sapermeina : Gallery
  • Crop/animal for higher productivity in NE #1
  • Training Programme under SPARK concluded
  • Why environment control is so difficult
  • 4th Foundation Day- Young Minds Collective
  • All set for second phase poll
  • The Nongsaba phenomenon
  • Khongjom Day @Khebaching #1 : Gallery
  • India's responsibility to end Manipur violence
  • Migrant worker could access TB services only
  • Importance of reading magazines as student
  • SHG pioneering agricultural innovation
  • Nearing the one year mark
  • The enemy within
  • Id-ul-Fitr @Hatta #2 : Gallery
  • Workshop @ NSU Manipur : Gallery
  • 15th Manipur State Film Awards 2023
  • "ST status for Meetei" at Panthoibi Shanglen
  • GSDP doubles, health shines
  • Vote has been cast, repoll held
  • Two faces of democracy
  • Laurels for Scientist Ngangkham Nimai
  • Crime against women in Manipur
  • "ST status for Meetei" at Sugnu
  • Creativity & innovation for vibrant career
  • 4th Foundation Day of YMC
  • Racing towards one year mark
  • Prophetic words, indeed
  • Nupi Landa Thaunaphabishing #14 :: Book
  • 174th Anniv Maharaj Narasingh #1 : Gallery
  • Ensuring Fair Voting in Hills of Manipur
  • Dr Irengbam Mohendra's latest book :: Rvw
  • NDA has the advantage in both
  • Lok Sabha polls in Manipur #1 : Gallery
  • L Rup's Robot 'Kangleinganbi' in Manipuri
  • Art- means of connecting hearts in Manipur
  • Is it Living Alive or Living Death ? :: Poem
  • Rabies - A preventable zoonotic disease
  • April 19, 2024: The blackest day of all
  • Ugly turns on voting day
  • Children Camp @JNMDA Imphal #2 : Gallery
  • The chasm between TB & HIV continues
  • Parliament and its Members
  • Kimchi for health and glowing skin
  • LS election with a difference
  • To vote, or not to vote ?
  • Sajibu Cheiraoba Chak Katpa #2 : Gallery
  • "ST status for Meetei" at Lamjao, Kakching
  • The Power of Poppy - 27 :: Poem
  • Mother Language based education essential
  • Modi's warriors wear regional hats
  • Nest Asia promoting Northeastern Cuisine
  • Now look beyond LS poll
  • The rot in the system
  • Scientists of Manipur : Laitonjam Warjeet
  • Community seed bank @Umathel : Gallery
  • 10 candidates cracked Civil Services Exam
  • Milk of Paradise: History of Opium : Rvw
  • How plastics find their way into our bodies
  • Condemning attack on Trucks along NH-37
  • Cong looking to buck the trend
  • Saving Manipur
  • Sajibu Cheiraoba: 1 occasion, 2 narratives #2
  • Election Duty :: Travellog
  • 1st Nagas' Meet in Punjab
  • How to select right MP to represent Manipur
  • "ST status for Meetei" at Tejpur
  • Bats are Keystone species for the Planet
  • The '15 days' conundrum
  • Free but not so fair
  • Descent of Radha-Krishna #30: Download
  • Before You Vote : My Rumbling Thoughts
  • "ST status for Meetei" at Kakching
  • Meiraba wins All India Sr tournament
  • Finding light in dark through my daughter
  • Navigating life's unreasonable expectations
  • Test of people's character
  • BJP's election manifesto
  • Athoubasingi Numit #1 : Gallery
  • Black rice & Glycemic Index
  • What Nadda should speak at Dimapur rally
  • Open Letter to CM Office Manipur
  • Meghalaya unveils Strawberry festival
  • Benefits of maths newspapers for students
  • Id-ul-Fitr @Hatta #1 : Gallery
  • Are you a good person ?
  • Physics Academy of NE : Executive Body
  • "ST status for Meetei" at Moirang
  • Cherrapunji Eastern Craft Gin launched
  • Cong on cautious path
  • Botox for Hair
  • Posers voters should raise now
  • The lull before the storm
  • 80th Anniv- Battle of Kanglatongbi @UK
  • Vir Chakra Ngangom Joydutta's bust unveiled
  • Hun - Thadou Cultural Festival : Gallery
  • "ST status for Meetei" at Singjamei
  • Election Eclipses: Ballad of Battle & Loss
  • Our voices are equal at the ballot box
  • Scientists of Manipur : Ngangkham Nimai
  • Urgent Call for Solidarity in Manipur
  • Meitei Nongsha #2 :: An Artwork
  • "ST status for Meetei" at Waikhong
  • About NPF-BJP-NPP alliance & why ?
  • World Veterinary Day, 2024
  • The heavy stake behind the LS polls
  • The politics of lying & deception
  • Sajibu Cheiraoba Chak Katpa #1 : Gallery
  • Hun-Thadou Cultural Fest @ Delhi: Report
  • Appeal to Parties & Candidates
  • "ST status for Meetei" at Wangoo
  • Establishment of community seed bank
  • Awareness Programme on new Criminal Laws
  • Make a right choice at the Lok Sabha election
  • Sajibu Cheiraoba: 1 occasion, 2 narratives #1
  • RIST talk-58 : Support systems of elderly
  • "ST status for Meetei" at Hiyanglam
  • Vote, do not boycott !
  • Lok Sabha election: A new dawn in politics ?
  • IIT-Guwahati Half Marathon report
  • Taking ST demand to the election ring
  • Lesson to be learnt from across border
  • Mirabai: Poised for Paris Olympics
  • Legal position for protection of environment
  • "ST status for Meetei" at Keisamthong
  • Heterocyclic compound & biochemical science
  • Inner, torn between two lovers
  • Certification Music Therapy Workshop
  • NOTA as a choice
  • Caesar's wife must be above suspicion
  • Descent of Radha-Krishna #29: Download
  • World Health Day 2024
  • "ST status for Meetei" at Pangantabi
  • The Power of Poppy - 26 :: Poem
  • Fulbright Fellowship Outreach at Arunachal
  • Id-ul Fitr da namaz nattana..
  • Nupi Landa Thaunaphabishing #13 :: Book
  • Lok Sabha election is coming, be prepared
  • 6th Hun-Thadou Cultural Festival
  • Let There Be Free & Fair Election
  • "ST status for Meetei" at Lamlong
  • Science magazines are important for student
  • Interesting choice of candidates
  • The power of We, the voters
  • Inspirations from Scientists of Manipur #1
  • The Case for Amendment of Article 371-C
  • Meitei Nongsha #1 :: Artwork
  • Link between forest & conflict in Manipur
  • Final Call for Application MFA - Phase-2
  • ST for Meiteis call before elections
  • Passing the buck
  • Beating of the Retreat #1 : Gallery
  • Life of our Lives in Ethnic Strife Era! :: Poem
  • IIT-Guwahati annual Half Marathon
  • Follow up: European Parliament on Manipur
  • Yoga & Kegel exercise: Pelvic floor workout
  • Opting for the NOTA button
  • Yearning of the displaced people
  • Kenedy Khuman (Singer) : Gallery
  • 5th NE Women's Peace Congregation
  • World Autism Awareness Day 2024
  • Election fever grips Manipur despite unrest
  • Looking for a decent election hustings
  • Clock ticking towards voting day
  • An exemplary directive
  • Children Camp @JNMDA Imphal #1 : Gallery
  • Memo to Election Commission of India
  • Easter & Holi echo in Nilgiris
  • Holiday Camp for children at JNMDA, Imphal
  • Zero waste is our moral responsibility
  • Elections & loyalty vis-a-vis Manipur crisis
  • Show of strength without unity
  • Yaoshang Pichakari #2 : Gallery
  • Panthoi Chanu : 1st to play in Australia
  • Intensive labs in film preservation
  • Building bridges with books
  • Need of the hour: Political maturity
  • Accepting defeat before the election
  • Descent of Radha-Krishna #28: Download
  • April Calendar for Year 2024 : Tools
  • Natural packaging from bamboo : Gallery
  • The Power of Poppy - 25 :: Poem
  • Everyone has their own Bharat Ratna
  • Nupi Landa Thaunaphabishing #12 :: Book
  • Demand- Manipuri as classical language
  • The Drummer from Odisha
  • Beauty benefits of lemon
  • Yaoshang Mei Thaba #2 : Gallery
  • Manipur's original Ponies : Gallery
  • Yaoshang & Dance of Democracy loom
  • Symposium on Jagadguru Shankaracharya
  • Choosing ITI as a campus after X
  • Yaoshang Pichakari #1 : Gallery
  • Yaoshang @Nabadwip Dham : Gallery
  • How oral health affects your pregnancy
  • Two faces of Holi
  • Prawaas 4.0, Multimodal Transport Show
  • A decade of development of higher education
  • Yaoshang Mei Thaba #1 : Gallery
  • Our Eternal Kangleipak :: Poem
  • Micro-livestock for livelihoods: For NE States
  • The fun of Holi used to be monotonous
  • 2nd Annual Art Exhibition #1 : Gallery
  • About the "Meitei" community from Manipur
  • Unveiling the medicinal benefits of honey
  • The incalculable value of wildlife
  • Promises of true love
  • Trends, Alliances, & Challenges in Elections
  • Meitei Goddess Ngaleima : An Artwork
  • Lamta Thangja @ Imphal : Gallery
  • Meira Paibis of Manipur
  • North East Film Festival #2 : Gallery
  • Students @ Class X Exam : Gallery
  • Saroi Khangba @ Kangla : Gallery
  • Protest for scrapping SoO #2 :Gallery
  • Shopping List for Shivaratri : Gallery
  • N Tombi Equestrian C'ships #1 : Gallery
  • Featured Front Page Photo 2024 #1: Gallery
  • Radio E-pao: Manipuri Film OST (130+ song)
  • Save Manipur : Protest [Feb 15] #3 : Gallery
  • Naorem Roshibina- Wushu Medallist : Gallery
  • GHOST of PEACE :: Download Booklet
  • List of Kings of Manipur: 33 - 1984 AD