LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-18-2009, 01:31 PM   #1
naresh.wwe
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Rep: Reputation: 0
device driver


Hello friends....
I am writing a scsi device driver.....wen i try to insert the module....computer hangs.....i need to restart.....so i cant even put printk to check the program...plz help me guys....
 
Old 03-18-2009, 01:45 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,801

Rep: Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176
Quote:
Originally Posted by naresh.wwe View Post
Hello friends....
I am writing a scsi device driver.....wen i try to insert the module....computer hangs.....i need to restart.....so i cant even put printk to check the program...plz help me guys....
How can we help you? You wrote this program/driver; why not put something in it to print messages as it executes?

And since you don't say anything about what version/distro of Linux, what you wrote the program in, or any details about anything (except "computer hangs"), how can we diagnose a problem?

Modify your code; step through it, and figure out where it dies. And spell/write more clearly, please.
 
Old 03-18-2009, 01:52 PM   #3
naresh.wwe
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
How can we help you? You wrote this program/driver; why not put something in it to print messages as it executes?

And since you don't say anything about what version/distro of Linux, what you wrote the program in, or any details about anything (except "computer hangs"), how can we diagnose a problem?

Modify your code; step through it, and figure out where it dies. And spell/write more clearly, please.


I am using kernel version 2.6.18.1 ...... i cant put print messages as it hangs as soon as I insert module....i hav to restart the PC....
I hav defined fields of scsi_host_template and registered a device and then bus and then created driver_fs_files of the device....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
new device, no known driver... Jaqui Linux - Hardware 5 01-05-2009 09:03 PM
Device driver for USB storage device linuxdeveloper29 Linux - Hardware 1 10-24-2008 08:30 AM
Multiple Device driver from single device driver???? rickhg12hs Linux - Kernel 3 05-25-2008 12:11 AM
Device Driver harsh_electro Linux - Kernel 6 09-10-2006 09:54 PM
device driver yanw Linux - Hardware 1 01-23-2003 09:00 AM


All times are GMT -5. The time now is 10:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration