what kind of information the linux driver modules (.ko )
files has ?
Answers were Sorted based on User's Feedback
Answer / ajay gautam
kernel 2.6 introduces a new file naming convention: kernel
modules now have a .ko extension (in place of the old .o
extension) which easily distinguishes them from conventional
object files. The reason for this is that they contain an
additional .modinfo section that where additional
information about the module is kept.
Linux program modpost can be used to convert .o files into
.ko files.
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / rulingminds
kernel object(.ko) is a relocatable elf object which
contains module code and data in elf sections. module.c is
compiled into relocatable object and intermediate file
module.mod.c is compiled into relocatable object and they
both together make into one relocatable file called kernel
object (.ko)
see www.rulingminds.com/modprogpart2
for in depth explanation of how modules are built and what
they contain and how they are inserted and removed
| Is This Answer Correct ? | 1 Yes | 1 No |
why the kernel panic error was appering?
what are different ways the context switch happens from user to kernel space or vice-versa ?
what is mean by raid and what are all raids available even in software and hardware?
diff b/w spinlock, seamaphores and mutex and where to use it.
What is atomic function / atomic variable ?
what is stored at /lib/modules ?
what is nis server
if one of the critical section code (linked list) is under ISR & another one in kernel thread ? How you will synchronize for this critical section code ?
What is the use of proc structure?
1.Diff between Active and passive FTP? 2.What is anacron? 3.Diff between yum update and yum install while doing for kernel? 4.root_squash and no_root_squash does what? 5.What are the commands will you execute to find a new hardware? 6.How will you find out a lun allocated from SAN? 7.What is the main diff in CaT5 and CAT6 cable, except the 1/100 and 1/1000? 8.What is stale NFS and How will you fix it? 9.What is kernel panic error? 10.How will you recover password and shadow file, in case both got deleted. Explain the steps? 11.Explain boot process 12.What is network bonding. Explain the steps? 13.What are the exit codes returned by FSCK? 14.What is LDOM? 15.Diff between block and character device?
what is the difference between user APIs and kernel system calls ?
What do fork() internally call?