LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-02-2010, 02:19 PM   #1
bizoo
LQ Newbie
 
Registered: Jul 2009
Posts: 17

Rep: Reputation: 0
initializing Clocksource with static __init and not as a module


HI
I have basically two questions:

i) Can i register a clocksource through a loadable kernel module and not as static module. The latter had many precedents in the kernel but about former i have no idea. Also, the kernel docs say that one can change the kernel clocksource during runtime but can they be registered at runtime too and not only at initialization?


I have a static kernel module inside the tree which starts with a normal __init macro. The module compiles correctly but after compiling the kernel and loading this new kernel,that particular module never shows up. I did put some debug messages in beginning of __init function definition but they never showed up in dmesg. Any ideas what could may well be wrong?
 
  


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
non __init calling __init timboar Linux - General 1 11-05-2010 07:58 PM
Kernel Compiling: Static vs. Module CoderMan Linux - General 2 08-08-2009 03:33 AM
How to link a static library to a kernel module pallava Linux - Newbie 1 09-26-2007 08:25 PM
netfilter/iptables in kernel: module vs static -Nw- neX Linux - Security 5 03-25-2005 06:44 PM
php static module & dynamic module install. eye Linux - Software 0 10-18-2003 12:16 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:26 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