LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-09-2001, 04:21 AM   #1
aliyildiz
LQ Newbie
 
Registered: Nov 2001
Posts: 8

Rep: Reputation: 0
hello world module


on command line when i write

insmod hello.o

no error occurs but i can't get the "hello, world" message and
i am silencly returned to the shell , thanx for helps


/* hello.c */

#define MODULE
#include <linux/module.h>
#include <linux/kernel.h>

int init_module(void) {printk("<1>hello, world\n"); return 0; }

void cleanup_module(void) {printk("<1>goodbye\n");}
 
Old 12-09-2001, 05:04 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Printk sends its loglevel+output to syslogd which decides if to print to console or stuff it in the logs. Its prolly in the logs.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hello world module the_uplink2x Programming 19 04-12-2005 02:14 PM
kcmshell module, Background&Screensaver Module can't be launch (but works @LookNFeeL) bobbyjoe Linux - Software 0 01-08-2005 04:48 AM
'Invalid module format' loading simple module on Suse Linux Professional 9.1 rocketdude Linux - Distributions 3 07-27-2004 11:40 PM
world writeable files will not stay world writeable antken Mandriva 1 03-02-2004 05:04 PM
php static module & dynamic module install. eye Linux - Software 0 10-18-2003 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:05 PM.

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