LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-07-2012, 12:18 AM   #1
beparas
Member
 
Registered: Nov 2006
Location: Pune
Posts: 48

Rep: Reputation: 0
Difference between .o and .ko file


Hi,
I am writing simple Linux module mod.c.
When I compile mod.c file, it creates two output file **mod.o** and **mod.ko**.
So I just want to know,
What is the difference between mod.o and mod.ko file?
 
Old 05-07-2012, 12:28 AM   #2
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 37
mod.ko files are used as kernel modules.

These files are used whenever necessary .For example in early days of linux everything was prebuild in a kernel .
This made kernel heavy and bit slow.

The new approach made kernel bit fast and responsive, all due to modularizing the kernel.
In this approach functionality is loaded to memory whenever it is required (this make lot of sense )
.
For e.g
You will only need a Bluetooth drivers loaded in memory whenever you plug in a bluetooth device.
So having Bluetooth drivers loaded in memory for all the time makes no sense.
Such modules are stored with .ko extension.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] what's the difference of := and ?= in make file? dspjm Programming 1 09-20-2011 03:56 PM
Difference between c and b file types in /dev Ashok Linux - Newbie 4 09-04-2011 02:19 AM
shell script to find the difference betwwn two file and place the difference to other kittunot4u Linux - General 3 07-19-2010 04:26 AM
why/what's the difference between a file and an executable? sunowww General 6 06-05-2004 04:20 PM
What's the difference between file systems? zzzt Linux - Newbie 3 01-03-2004 07:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration